Boost C++ Libraries: Ticket #10919: test_cmath_tricky.test:error: 'exp2' is not a member of 'std::tr1' https://svn.boost.org/trac10/ticket/10919 <p> Problem:tr1/test_cmath_tricky.test fails to compile with "test_cmath_tricky.cpp:68:27: error: 'exp2' is not a member of 'std::tr1'" with studio 12.4 and g++-4.8.2 on Solaris 11.2 </p> <p> Test with Studio 12.4: "test_cmath_tricky.cpp", line 68: Error: exp2 is not a member of std::tr1. "test_cmath_tricky.cpp", line 69: Error: exp2 is not a member of std::tr1. "test_cmath_tricky.cpp", line 70: Error: exp2 is not a member of std::tr1. "test_cmath_tricky.cpp", line 71: Error: exp2f is not a member of std::tr1. "test_cmath_tricky.cpp", line 72: Error: exp2l is not a member of std::tr1. "test_cmath_tricky.cpp", line 78: Error: fdim is not a member of std::tr1. "test_cmath_tricky.cpp", line 79: Error: fdim is not a member of std::tr1. "test_cmath_tricky.cpp", line 80: Error: fdim is not a member of std::tr1. "test_cmath_tricky.cpp", line 81: Error: fdimf is not a member of std::tr1. "test_cmath_tricky.cpp", line 82: Error: fdiml is not a member of std::tr1. "test_cmath_tricky.cpp", line 83: Error: fma is not a member of std::tr1. "test_cmath_tricky.cpp", line 84: Error: fma is not a member of std::tr1. "test_cmath_tricky.cpp", line 85: Error: fma is not a member of std::tr1. "test_cmath_tricky.cpp", line 86: Error: fmaf is not a member of std::tr1. "test_cmath_tricky.cpp", line 87: Error: fmal is not a member of std::tr1. </p> <p> "test_cmath_tricky.cpp", line 103: Error: ilogb is not a member of std::tr1. "test_cmath_tricky.cpp", line 104: Error: ilogb is not a member of std::tr1. "test_cmath_tricky.cpp", line 105: Error: ilogb is not a member of std::tr1. "test_cmath_tricky.cpp", line 106: Error: ilogbf is not a member of std::tr1. "test_cmath_tricky.cpp", line 107: Error: ilogbl is not a member of std::tr1. "test_cmath_tricky.cpp", line 113: Error: llrint is not a member of std::tr1. "test_cmath_tricky.cpp", line 114: Error: llrint is not a member of std::tr1. "test_cmath_tricky.cpp", line 115: Error: llrint is not a member of std::tr1. "test_cmath_tricky.cpp", line 116: Error: llrintf is not a member of std::tr1. "test_cmath_tricky.cpp", line 117: Error: llrintl is not a member of std::tr1. </p> <p> Test with g++-4.8.2 test_cmath_tricky.cpp: In function 'int main(int, const char<strong>)': test_cmath_tricky.cpp:68:27: error: 'exp2' is not a member of 'std::tr1' </strong></p> <blockquote> <p> verify_return_type((std::tr1::exp2)(d), d); </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> test_cmath_tricky.cpp:68:27: note: suggested alternative: In file included from /usr/include/math.h:13:0, </p> <blockquote> <p> from ../../../boost/math/tr1.hpp:14, from ../../../boost/tr1/cmath.hpp:21, from test_cmath_tricky.cpp:13: </p> </blockquote> <p> /usr/include/iso/math_c99.h:215:15: note: 'exp2' </p> <blockquote> <p> extern double exp2 <span class="underline">P((double)); </span></p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> test_cmath_tricky.cpp:69:27: error: 'exp2' is not a member of 'std::tr1' </p> <blockquote> <p> verify_return_type((std::tr1::exp2)(f), f); </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> test_cmath_tricky.cpp:69:27: note: suggested alternative: In file included from /usr/include/math.h:13:0, </p> <blockquote> <p> from ../../../boost/math/tr1.hpp:14, from ../../../boost/tr1/cmath.hpp:21, from test_cmath_tricky.cpp:13: </p> </blockquote> <p> ... test_cmath_tricky.cpp:71:27: error: 'exp2f' is not a member of 'std::tr1' </p> <blockquote> <p> verify_return_type((std::tr1::exp2f)(f), f); </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> test_cmath_tricky.cpp:71:27: note: suggested alternative: In file included from /usr/include/math.h:13:0, </p> <blockquote> <p> from ../../../boost/math/tr1.hpp:14, from ../../../boost/tr1/cmath.hpp:21, from test_cmath_tricky.cpp:13: </p> </blockquote> <p> /usr/include/iso/math_c99.h:269:14: note: 'exp2f' </p> <blockquote> <p> extern float exp2f <span class="underline">P((float)); </span></p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> test_cmath_tricky.cpp:72:27: error: 'exp2l' is not a member of 'std::tr1' </p> <blockquote> <p> verify_return_type((std::tr1::exp2l)(ld), ld); </p> </blockquote> <p> ... </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10919 Trac 1.4.3 John Maddock Sat, 10 Jan 2015 19:42:40 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10919#comment:1 https://svn.boost.org/trac10/ticket/10919#comment:1 <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">wontfix</span> </li> </ul> <p> Two points: </p> <ul><li>The "tricky*.cpp" tests in TR1 will only compile if the compiler vendor provides a conforming TR1 implementation. </li><li>Boost.TR1 is depricated and will be removed in a future release anyway. </li></ul> Ticket