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
environment: Microsoft Visual Studio Enterprise 2019 Version 16.11.2 compiler flag: /std:c++20
the following code is not compiled (in C++17 it compiles successfully)
check::Expected makeError(int const code, std::string description) { return tl::make_unexpected(check::Error{code, std::move(description)}); // Error C2440 'return': cannot convert from 'tl::unexpected<E>' to 'tl::expected<check::Success,check::Error>' }
definitions:
struct Success { }; struct Error { explicit Error(Error&&) = default; // to delete copy ctor Error(int code, std::string description) : code(code), description(std::move(description)) {} int code = 0; std::string description; }; using Expected = tl::expected<Success, Error>;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
environment: Microsoft Visual Studio Enterprise 2019 Version 16.11.2
compiler flag: /std:c++20
the following code is not compiled (in C++17 it compiles successfully)
definitions:
The text was updated successfully, but these errors were encountered: