#21 TypeTraits ReferredType for non-reference not NullType

open
nobody
None
5
2010-01-30
2010-01-30
Ondra
No

For TypeTraits, the comment says that

ReferredType : returns the type to which T refers if T is a reference type, NullType otherwise

but the implementation for a non-reference type returns T:

template <class U> struct ReferenceTraits
{
enum { result = false };
typedef U ReferredType;
};

patch included.

Cheers,
Ondra

Discussion