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

Section: 26.3.12 [vector.bool] Status: C++11 Submitter: Alisdair Meredith Opened: 2008-03-17 Last modified: 2016-02-10

Priority: Not Prioritized

View all other issues in [vector.bool].

View all issues with C++11 status.

Discussion:

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 26.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;