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
Based on the description the default ctor should construct an empty variant value:
** * \brief Construct an empty variant * * Construct an empty variant */ Variant();
hasValue method always returns 'true' even for the following simple scenario:
hasValue
assert (Variant<char, int>{}.hasValue() == false); // expectation to have an empty variant here
and there is not bad_cast exception
bad_cast
const auto value Variant<char, int>{}.get<char>(); // there is no `bad_cast` exception, why?
Could you please clarify what is an excepted behavior?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Based on the description the default ctor should construct an empty variant value:
hasValue
method always returns 'true' even for the following simple scenario:and there is not
bad_cast
exceptionCould you please clarify what is an excepted behavior?
The text was updated successfully, but these errors were encountered: