id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 1626,"[type_traits] ""bad_alloc is not a member of std"" in has_virtual_destructor_test.cpp",faridz@…,John Maddock,"I've got the following errors while testing the boost with stdcxx library on icc-10.1/Linux: {{{ ../libs/type_traits/test/has_virtual_destructor_test.cpp(58): error: namespace ""std"" has no member ""bad_alloc"" BOOST_CHECK_SOFT_INTEGRAL_CONSTANT(::tt::has_virtual_destructor::value, true, false); ^ ../libs/type_traits/test/has_virtual_destructor_test.cpp(58): error: namespace ""std"" has no member ""bad_alloc"" BOOST_CHECK_SOFT_INTEGRAL_CONSTANT(::tt::has_virtual_destructor::value, true, false); ^ ../libs/type_traits/test/has_virtual_destructor_test.cpp(58): error: namespace ""std"" has no member ""bad_alloc"" BOOST_CHECK_SOFT_INTEGRAL_CONSTANT(::tt::has_virtual_destructor::value, true, false); ^ ../libs/type_traits/test/has_virtual_destructor_test.cpp(58): error: namespace ""std"" has no member ""bad_alloc"" BOOST_CHECK_SOFT_INTEGRAL_CONSTANT(::tt::has_virtual_destructor::value, true, false); ^ ../libs/type_traits/test/has_virtual_destructor_test.cpp(58): error: namespace ""std"" has no member ""bad_alloc"" BOOST_CHECK_SOFT_INTEGRAL_CONSTANT(::tt::has_virtual_destructor::value, true, false); ^ ../libs/type_traits/test/has_virtual_destructor_test.cpp(58): error: namespace ""std"" has no member ""bad_alloc"" BOOST_CHECK_SOFT_INTEGRAL_CONSTANT(::tt::has_virtual_destructor::value, true, false); ^ compilation aborted for ../libs/type_traits/test/has_virtual_destructor_test.cpp (code 2) }}} The same result on gcc/Linux: {{{ ../libs/type_traits/test/has_virtual_destructor_test.cpp: In function ???int main()???: ../libs/type_traits/test/has_virtual_destructor_test.cpp:58: error: ???bad_alloc??? is not a member of ???std??? ../libs/type_traits/test/has_virtual_destructor_test.cpp:58: error: ???bad_alloc??? is not a member of ???std??? ../libs/type_traits/test/has_virtual_destructor_test.cpp:58: error: template argument 1 is invalid ../libs/type_traits/test/has_virtual_destructor_test.cpp:58: error: template argument 1 is invalid ../libs/type_traits/test/has_virtual_destructor_test.cpp:58: error: ???bad_alloc??? is not a member of ???std??? ../libs/type_traits/test/has_virtual_destructor_test.cpp:58: error: ???bad_alloc??? is not a member of ???std??? ../libs/type_traits/test/has_virtual_destructor_test.cpp:58: error: template argument 1 is invalid ../libs/type_traits/test/has_virtual_destructor_test.cpp:58: error: ???bad_alloc??? is not a member of ???std??? ../libs/type_traits/test/has_virtual_destructor_test.cpp:58: error: ???bad_alloc??? is not a member of ???std??? ../libs/type_traits/test/has_virtual_destructor_test.cpp:58: error: template argument 1 is invalid ../libs/type_traits/test/has_virtual_destructor_test.cpp:58: error: ???bad_alloc??? is not a member of ???std??? ../libs/type_traits/test/has_virtual_destructor_test.cpp:58: error: ???bad_alloc??? is not a member of ???std??? ../libs/type_traits/test/has_virtual_destructor_test.cpp:58: error: template argument 1 is invalid ../libs/type_traits/test/has_virtual_destructor_test.cpp:58: error: ???bad_alloc??? is not a member of ???std??? ../libs/type_traits/test/has_virtual_destructor_test.cpp:58: error: ???bad_alloc??? is not a member of ???std??? ../libs/type_traits/test/has_virtual_destructor_test.cpp:58: error: template argument 1 is invalid ../libs/type_traits/test/has_virtual_destructor_test.cpp:58: error: template argument 1 is invalid ../libs/type_traits/test/has_virtual_destructor_test.cpp:58: error: ???bad_alloc??? is not a member of ???std??? ../libs/type_traits/test/has_virtual_destructor_test.cpp:58: error: ???bad_alloc??? is not a member of ???std??? ../libs/type_traits/test/has_virtual_destructor_test.cpp:58: error: template argument 1 is invalid ../libs/type_traits/test/has_virtual_destructor_test.cpp:58: error: template argument 1 is invalid }}} I propose to #include to define std::bad_alloc class: {{{ Index: libs/type_traits/test/has_virtual_destructor_test.cpp =================================================================== --- libs/type_traits/test/has_virtual_destructor_test.cpp (revision 43111) +++ libs/type_traits/test/has_virtual_destructor_test.cpp (working copy) @@ -12,6 +12,7 @@ # include #endif +#include #include #include }}} ",Bugs,closed,To Be Determined,type_traits,Boost Development Trunk,Problem,fixed,,