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

basic_regex constructor inconsistencies #48

Closed
sdutoit opened this issue Apr 15, 2013 · 0 comments
Closed

basic_regex constructor inconsistencies #48

sdutoit opened this issue Apr 15, 2013 · 0 comments

Comments

@sdutoit
Copy link
Contributor

sdutoit commented Apr 15, 2013

From an email to cxxeditor:

In the Working Draft #3337 of the C++ Standard in section
28.8 Class template basic_regex

there is written

explicit basic_regex(const charT* p, flag_type f = regex_constants::ECMAScript);

Take into account the keyword explicit.

However in the description of this constructor this keyword is abset

basic_regex(const charT* p, flag_type f = regex_constants::ECMAScript);

The simialar defect was pointed out by Daniel Krügler for the constructor

template <class ST, class SA>
explicit basic_regex(const basic_string<charT, ST, SA>& p,
flag_type f = regex_constants::ECMAScript);

In its description the keyword explicit is also abset.

template <class ST, class SA>
basic_regex(const basic_string<charT, ST, SA>& s,
flag_type f = regex_constants::ECMAScript);
@ghost ghost assigned sdutoit Apr 15, 2013
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

1 participant