Boost logo

Boost Users :

From: the_d.geo (coracao_at_[hidden])
Date: 2002-04-05 13:17:40


FYI, the following piece of code is an excerpt from
boost/type_traits/composite_traits.hpp (boost version 1_27_0). Using
sun's CC (Sun WorkShop 6 update 2 C++ 5.3. Patch 111685-05 2002/02/03)
and debug on (-g), it fails compilation with the following message

>> Assertion: (../links/dbg_cstabs.cc, line 611)
    while processing test.cpp at line 0.

I'd assume that it is a bug in the compiler since it compiles fine
without the -g flag.

--- start code
#include <boost/type_traits/ice.hpp>
template <typename T> struct is_pointer
{ BOOST_STATIC_CONSTANT(bool, value = (::boost::type_traits::ice_and<
::boost::detail::is_pointer_helper<T>::value,
::boost::type_traits::ice_not< ::boost::is_member_pointer<T>::value
>::value >::value)); };
--- end code


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net