Boost C++ Libraries: Ticket #13122: Four statics from containers_fwd.hpp should be constexpr https://svn.boost.org/trac10/ticket/13122 <p> We did a study of duplicated global symbols in our modules and found four duplicated symbols coming from boost. Every compilation unit that includes this header will get four of these statics and they will be duplicated in the final executable. We had 525x4 instances of these duplicated globals in just one module. </p> <p> The tool used to find this problem is described here with source code: </p> <p> <a class="ext-link" href="https://randomascii.wordpress.com/2017/01/08/add-a-const-here-delete-a-const-there"><span class="icon">​</span>https://randomascii.wordpress.com/2017/01/08/add-a-const-here-delete-a-const-there</a> </p> <p> static const ordered_range_t ordered_range = ordered_range_t(); static const ordered_unique_range_t ordered_unique_range = ordered_unique_range_t(); static const default_init_t default_init = default_init_t(); static const value_init_t value_init = value_init_t(); </p> <p> It seems all is needed is for the BOOST_CONSTEXPR_OR_CONST to be used instead of 'const'. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13122 Trac 1.4.3