× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

How can I find out the version of given / installed boost headers

Arnaud Bellec
Jun 12, 2015
<p>Checkout <code>version.hpp</code> in the root <code>include/</code> folder:</p> <pre><code>#define BOOST_LIB_VERSION "1_50_0" </code></pre> <p>This is the version number, with the dots replaced by underscores (here 1.50.0).</p> <p>If you want to check compatibility automatically inside your header files, there is a numerical field, too:</p> <pre><code>// BOOST_VERSION % 100 is the sub-minor version // BOOST_VERSION / 100 % 1000 is the minor version // BOOST_VERSION / 100000 is the major version #define BOOST_VERSION 105000 </code></pre> <p>This tip was originally posted on <a href="http://stackoverflow.com/questions/26844525/How%20can%20I%20find%20out%20the%20version%20of%20given%20/%20installed%20boost%20headers/26844575">Stack Overflow</a>.</p>

Get New Tutorials Delivered to Your Inbox

New tutorials will be sent to your Inbox once a week.

comments powered by Disqus