We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the C++14 CD (N3691), 20.6.2 [optional.syn] has the following:
// 20.6.10, Comparison with T template <class T> constexpr bool operator==(const optional<T>&, const T&); template <class T> constexpr bool operator==(const T&, const optional<T>&); template <class T> constexpr bool operator<(const optional<T>&, const T&); template <class T> constexpr bool operator<(const T&, const optional<T>&);
But 20.6.10 [optional.comp_with_t] is missing the description for
template <class T> constexpr bool operator<(const T&, const optional<T>&);
I’d assume that the description should read:
template <class T> constexpr bool operator<(const T& v, const optional<T>& x); 4. Returns: bool(x) ? less<T>{}(v, *x) : false.
(Thanks to Stephan T. Lavavej who pointed out forgetting the variable names in the proposed fix)
Thanks!
The text was updated successfully, but these errors were encountered:
Not editorial, but it seems an LWG issue has been added instead.
Sorry, something went wrong.
Thanks :)
No branches or pull requests
In the C++14 CD (N3691), 20.6.2 [optional.syn] has the following:
But 20.6.10 [optional.comp_with_t] is missing the description for
I’d assume that the description should read:
(Thanks to Stephan T. Lavavej who pointed out forgetting the variable names in the proposed fix)
Thanks!
The text was updated successfully, but these errors were encountered: