You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What ends up happening is internally it routes through the templated constructor and std::to_string<ska::flat_hash_map<int,Value,ska::detailv3::IntegerIdentityHash,std::equal_to<int>,std::allocator<std::pair<int,Value>>>::convertible_to_value> tries to be called, which does not compile.
perhaps instead of using the conversion operator, an explicit default construct call can happen instead, ensuring the empty constructor is called.
The text was updated successfully, but these errors were encountered:
clevijoki
changed the title
Creation of default values can be incompatible with convertible_to_type structure
Creation of default values can be incompatible with convertible_to_value structure
Sep 2, 2021
This code will not compile (in MSVC 2019 or clang 12)
What ends up happening is internally it routes through the templated constructor and
std::to_string<ska::flat_hash_map<int,Value,ska::detailv3::IntegerIdentityHash,std::equal_to<int>,std::allocator<std::pair<int,Value>>>::convertible_to_value>
tries to be called, which does not compile.perhaps instead of using the conversion operator, an explicit default construct call can happen instead, ensuring the empty constructor is called.
The text was updated successfully, but these errors were encountered: