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
Mismatch of the type for the shifted value with the result type leads to errors for int64_t and uint64_t. erorr use sufix ul:
ul
static constexpr auto sign_bit = [](size_t num_bytes) -> uint64_t { return 0x80ul << (num_bytes * 8); }; static constexpr auto multiplier = [](size_t num_bytes) -> uint64_t { return 0x1ul << (num_bytes * 8); };
need use sufix ull:
ull
static constexpr auto sign_bit = [](size_t num_bytes) -> uint64_t { return 0x80ull << (num_bytes * 8); }; static constexpr auto multiplier = [](size_t num_bytes) -> uint64_t { return 0x1ull << (num_bytes * 8); };
additionally, for correct use macros OUTCOME_TRY with different compilers, you need to add a keyword auto before variable name. For smarter compilers:
OUTCOME_TRY
auto
OUTCOME_TRY(var_name ...)
For less smart compilers need add auto before variable name
OUTCOME_TRY(auto var_name ...)
The text was updated successfully, but these errors were encountered:
I have changed the original content. This is the message to notify about it.
Sorry, something went wrong.
No branches or pull requests
Mismatch of the type for the shifted value with the result type leads to errors for int64_t and uint64_t.
erorr use sufix
ul
:need use sufix
ull
:additionally, for correct use macros
OUTCOME_TRY
with different compilers, you need to add a keywordauto
before variable name.For smarter compilers:
For less smart compilers need add
auto
before variable nameThe text was updated successfully, but these errors were encountered: