Boost logo

Boost :

From: Gennadiy E. Rozental (rogeeff_at_[hidden])
Date: 2001-09-07 10:39:01


I propose following change in type_traits_test.hpp to be able to
compile it with Solaris Forte C++ 6 u.1

Gennadiy

cvs diff type_traits_test.hpp
Index: type_traits_test.hpp
===================================================================
RCS
file: /cvsroot/boost/boost/boost/type_traits/type_traits_test.hpp,v
retrieving revision 1.8
diff -r1.8 type_traits_test.hpp
14a15,16
> #include <boost/type_traits/composite_traits.hpp>
>
75a78,80
> struct type_checker;
>
> template <class T, class U>
77a83,91
> #if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
> BOOST_STATIC_CONSTANT(bool, is_ref_T
= ::boost::is_reference<T>::value);
> BOOST_STATIC_CONSTANT(bool, is_ref_U
= ::boost::is_reference<U>::value);
> BOOST_STATIC_CONSTANT(bool, is_con_T
= ::boost::is_const<T>::value);
> BOOST_STATIC_CONSTANT(bool, is_con_U
= ::boost::is_const<U>::value);
> BOOST_STATIC_CONSTANT(bool, is_vol_T
= ::boost::is_volatile<T>::value);
> BOOST_STATIC_CONSTANT(bool, is_vol_U
= ::boost::is_volatile<U>::value);
> #endif
>
81c95
< #ifdef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION

---
> #if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
83,85c97
<          || (::boost::is_reference<T>::value !
= ::boost::is_reference<U>::value)
<          || (::boost::is_const<T>::value !
= ::boost::is_const<U>::value)
<          || (::boost::is_volatile<T>::value !
= ::boost::is_volatile<U>::value))
---
>          || ( is_ref_T != is_ref_U ) || ( is_con_T != is_con_U ) || 
( is_vol_T != is_vol_U ))
94c106
< #ifdef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
---
> #if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
100c112
< #ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
---
> #if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) || defined
(__SUNPRO_CC) && __SUNPRO_CC >= 0x520

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk