Boost logo

Boost :

Subject: Re: [boost] [type_traits][multi_index][msvc-7.1] problems with is_const in VC 7.1
From: John Maddock (jz.maddock_at_[hidden])
Date: 2015-10-15 08:31:35

> Boost.TypeTraits recently changed its is_const implementation to the
> very simple
> template <class T>
> struct is_const : public false_type {};
> template <class T> struct is_const<T const> : public true_type{};
> template <class T, size_t N> struct is_const<T const[N]> :
> public true_type{};
> template <class T> struct is_const<T const[]> : public true_type{};
> which relies on template partial specialization (supposedly supported
> by VC 7.1). Yet, seems like const_identity_base is wrongly selected
> for a non-const Type.
> Any clues about what might be going on? Thank you,

All the type_traits tests are marked as passing for VC7.1, other than
that I have no idea and no longer have access to that compiler.

Sorry I can't be more helpful, John.

Boost list run by bdawes at, gregod at, cpdaniel at, john at