id summary reporter owner description type status milestone component version severity resolution keywords cc 11173 numeric/odeint does not observe BOOST_NO_RTTI, BOOST_NO_TYPEID noe casas John Maddock "Compiling code that uses odeint with g++ using -fno-rtti gives an error due to the use of typeid in math/policies/error_handling.hpp, despite me having defined BOOST_NO_RTTI and BOOST_NO_TYPEID. Environment -------------------------------- - Ubuntu 14.04 - g++ 4.8.2 (Ubuntu 4.8.2-19ubuntu1) - boost 1.54 (although the code is the same in trunk as of today) Compilation error -------------------------- In file included from /usr/include/boost/math/special_functions/gamma.hpp:21:0, from /usr/include/boost/math/special_functions/factorials.hpp:13, from /usr/include/boost/math/special_functions/binomial.hpp:13, from /usr/include/boost/numeric/odeint/stepper/bulirsch_stoer_dense_out.hpp:30, from /usr/include/boost/numeric/odeint.hpp:45, from model.cpp:5: /usr/include/boost/math/policies/error_handling.hpp: In function ‘void boost::math::policies::detail::raise_error(const char*, const char*)’: /usr/include/boost/math/policies/error_handling.hpp:90:45: error: cannot use typeid with -fno-rtti msg += (boost::format(function) % typeid(T).name()).str(); ^ /usr/include/boost/math/policies/error_handling.hpp: In function ‘void boost::math::policies::detail::raise_error(const char*, const char*, const T&)’: /usr/include/boost/math/policies/error_handling.hpp:107:45: error: cannot use typeid with -fno-rtti msg += (boost::format(function) % typeid(T).name()).str(); " Bugs closed To Be Determined math Boost Development Trunk Problem worksforme rtti, typeid