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

814. vector<bool>::swap(reference, reference) not defined

Section: 24.3.12 [vector.bool] Status: C++11 Submitter: Alisdair Meredith Opened: 2008-03-17 Last modified: 2016-01-28

Priority: Not Prioritized

View other active issues in [vector.bool].

View all other issues in [vector.bool].

View all issues with C++11 status.


vector<bool>::swap(reference, reference) has no definition.

[ San Francisco: ]

Move to Open. Alisdair to provide a resolution.

[ Post Summit Daniel provided wording. ]

[ Batavia (2009-05): ]

We agree with the proposed resolution. Move to Tentatively Ready.

Proposed resolution:

Just after 24.3.12 [vector.bool]/5 add the following prototype and description:

static void swap(reference x, reference y);

-6- Effects: Exchanges the contents of x and y as-if by:

bool b = x;
x = y;
y = b;