Opened 13 years ago

Closed 13 years ago

#3202 closed Bugs (fixed)

is_same documentation error

Reported by: Agustín K-ballo Bergé <kaballo86@…> Owned by: John Maddock
Milestone: Boost 1.40.0 Component: type_traits
Version: Boost 1.39.0 Severity: Not Applicable
Keywords: TypeTraits is_same documentation Cc:

Description

TypeTraits is_same documentation shows the following example:

is_same<T>::value_type is the type bool.

Since is_same expects two arguments, this should be:

is_same<T,U>::value_type is the type bool.

Change History (2)

comment:1 by Agustín K-ballo Bergé <kaballo86@…>, 13 years ago

The same happens with is_base_of and is_convertible. is_virtual_base_of gets it right. I think those are the only 'binary' traits.

comment:2 by John Maddock, 13 years ago

Resolution: fixed
Status: newclosed

(In [54206]) Update docs. Fixes typos. Fixes #3202.

Note: See TracTickets for help on using tickets.