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
Zserio Optional assignment and emplace() are not working on initializer lists. The reason is that template parameters cannot be deduced. Example:
typedef zserio::Optional<std::vector<int>> OptionalVectorInt; OptionalVectorInt v; v = {4};
The previous example is not compilable and returns an error "couldn’t deduce template parameter ‘U’"
Consider to use something like
BasicOptional& operator=(T&& value) { emplace(std::forward<T>(value)); return *this; }
Reported by @reinco.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Zserio Optional assignment and emplace() are not working on initializer lists. The reason is that template parameters cannot be deduced. Example:
The previous example is not compilable and returns an error "couldn’t deduce template parameter ‘U’"
Consider to use something like
Reported by @reinco.
The text was updated successfully, but these errors were encountered: