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
struct data
{
int val_;
const error_category * cat_;
};
union
{
data d1_;
unsigned char d2_[ sizeof(std::error_code) ];
};
it might be better to have
int val_;
void const* cat_; // error_category or std::error_category
which could both simplify the code (esp. when we transition the std::error_code case to (value, unknown_category)) and help with GCC false -Wmaybe-uninitialized positives.
The text was updated successfully, but these errors were encountered:
Instead of
it might be better to have
which could both simplify the code (esp. when we transition the
std::error_code
case to (value, unknown_category)) and help with GCC false -Wmaybe-uninitialized positives.The text was updated successfully, but these errors were encountered: