Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"conversion operator" denotes functions or operators? #444

Closed
potswa opened this issue Feb 23, 2015 · 1 comment
Closed

"conversion operator" denotes functions or operators? #444

potswa opened this issue Feb 23, 2015 · 1 comment
Assignees

Comments

@potswa
Copy link

potswa commented Feb 23, 2015

[vector.bool] §23.3.7/4 refers to std::vector<bool>::reference::operator bool as a conversion operator, whereas it's a conversion function. The index indicates that "conversion operator" is the same as "conversion, user-defined." However [expr.cast] §5.4/2 uses the term to refer to static_cast, const_cast, dynamic_cast and reinterpret_cast, which seems more appropriate.

jensmaurer added a commit to jensmaurer/draft that referenced this issue Nov 13, 2016
@jensmaurer
Copy link
Member

"conversion operator" should not be a defined term in the standard; the use in 5.4 is assumed to be descriptive English text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants