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
Those static assert currently fails and requires specialization. We are using std::expected<void, std::string> for error handling with error messages, and we noticed that it didn't seem to be supported out of the box.
I'm not a meta-programming expert, but I think it fails because it deduces that void is not copyable nor movable, but for std::expected, it doesn't matter.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Those static assert currently fails and requires specialization. We are using std::expected<void, std::string> for error handling with error messages, and we noticed that it didn't seem to be supported out of the box.
I'm not a meta-programming expert, but I think it fails because it deduces that void is not copyable nor movable, but for std::expected, it doesn't matter.
Beta Was this translation helpful? Give feedback.
All reactions