Boost C++ Libraries: Ticket #9954: [ublas] fixed_vector<> broken for msvc-12.0 https://svn.boost.org/trac10/ticket/9954 <p> fixed_vector&lt;&gt; is broken on msvc-12.0 due to the use of constexpr. This heyword is not suported by this compiler. </p> <p> BOOST_UBLAS_CPP_GE_2011 macro is used to enable/disable the whole class (wrongly on msvc-12.0) instead of enabling only some parts of the code as it's done in other libraries. </p> <p> Another thing is that fixed_vector&lt;&gt; is only available on some compilers which allows the users to write non-portable code. </p> <p> Variadic templates may be emulated with Boost.Preprocessor, e.g. see how emplace_back() is implemented in boost::container::vector&lt;&gt; : </p> <p> <a class="ext-link" href="https://github.com/boostorg/container/blob/develop/include/boost/container/vector.hpp"><span class="icon">​</span>https://github.com/boostorg/container/blob/develop/include/boost/container/vector.hpp</a> lines 1309-1380. </p> <p> constexpr may be conditionally used e.g. by one of macros defined in Boost.Config: </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.macros_that_allow_use_of_c__11_features_with_c__03_compilers">http://www.boost.org/doc/libs/1_55_0/libs/config/doc/html/boost_config/boost_macro_reference.html#boost_config.boost_macro_reference.macros_that_allow_use_of_c__11_features_with_c__03_compilers</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9954 Trac 1.4.3 anonymous Fri, 23 Jan 2015 00:59:09 GMT <link>https://svn.boost.org/trac10/ticket/9954#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9954#comment:1</guid> <description> <p> This should have been resolved in the newest version. </p> </description> <category>Ticket</category> </item> </channel> </rss>