Boost logo

Boost :

From: John Maddock (John_Maddock_at_[hidden])
Date: 2000-10-14 06:58:27


>But what if the type is "char* const"? It won't match the specialization
>because the pointer itself is const. I think there should be a second
>specialization that looks like this:

That was how it was in one of the early (pre-release) versions, but was
changed to follow the definitions in 3.9.2 (compound types). BTW the docs
make it clear that is_pointer applies to cv-unqualified types, if you want
to ignore cv-qualifiers then use:

is_pointer<typename remove_reference<T>::type>::value

- John.

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