This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of CD1 status.

496. Illegal use of "T" in vector<bool>

Section: 23.3.11 [vector] Status: CD1 Submitter: richard@ex-parrot.com Opened: 2005-02-10 Last modified: 2016-01-28

Priority: Not Prioritized

View all other issues in [vector].

View all issues with CD1 status.

Discussion:

In the synopsis of the std::vector<bool> specialisation in 23.3.11 [vector], the non-template assign() function has the signature

  void assign( size_type n, const T& t );

The type, T, is not defined in this context.

Proposed resolution:

Replace "T" with "value_type".