id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 1532,#pragma once,NN,John Maddock,"The most of modern compilers do support #pragma once feature. This can reduce significantly the compilation time. Boost should use this too. Proposal: In boost/config.hpp define the BOOST_ONCE macro: (Of course this should be defined in the right compiler configuration header file) {{{ !#cpp // VC >4.0 // GCC >=4.30 // ICC >10 #if (defined(_MSC_VER) && _MSC_VER > 1000) || \ (defined(__GNUC__) && ((__GNUC__ == 4 && __GNUC_MINOR__ >= 30) || (__GNUC__ > 4))) || \ (defined(__ICC) && __ICC > 1000) # define BOOST_ONCE once #else # define BOOST_ONCE message("""") #endif }}} Using in other files: boost/xxx/yyy.hpp {{{ !#cpp #ifndef BOOST_XXX_YYY_INCLUDED #define BOOST_XXX_YYY_INCLUDED #include #pragma BOOST_ONCE #endif // BOOST_XXX_YYY_INCLUDED }}}",Feature Requests,closed,Boost 1.36.0,config,Boost 1.34.1,Optimization,wontfix,,