Boost C++ Libraries: Ticket #10166: need a way to find boost version https://svn.boost.org/trac10/ticket/10166 <p> Some Boost libraries such as coroutine change often enough that it would be good to have a compile-time macro saying what version of Boost is currently in use (such as 1.55). Maybe there is a way to do this but I can't find it in the docs. The obvious way is to add a macro into the predef library. It is almost humorous that this library tracks so many version numbers (of compilers, etc.) but not the version number of Boost itself. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10166 Trac 1.4.3 anonymous Tue, 01 Jul 2014 19:12:18 GMT component changed; owner set https://svn.boost.org/trac10/ticket/10166#comment:1 https://svn.boost.org/trac10/ticket/10166#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">René Rivera</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">predef</span> </li> </ul> Ticket Marshall Clow Wed, 02 Jul 2014 23:45:48 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10166#comment:2 https://svn.boost.org/trac10/ticket/10166#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> The bit that you want is <code> #include &lt;boost/version.hpp&gt; </code> </p> <p> <a href="http://www.boost.org/doc/libs/1_55_0/libs/config/doc/html/boost_config/boost_macro_reference.html#boost_config.boost_macro_reference.boost_informational_macros">Nitty Gritty here</a> </p> Ticket