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
emplace could do a much better job of detecting the reasons for failure, but this seems like an obvious one
(though the check isn't entirely trivial because you have to find the right ctor and check its visibility)
The text was updated successfully, but these errors were encountered:
In my emplace implementation [1], the way I handle this is by just calling the constructor without trying to check first whether it will succeed. If it works, great; if it doesn't, you get the error message straight from the compiler.
emplace could do a much better job of detecting the reasons for failure, but this seems like an obvious one
(though the check isn't entirely trivial because you have to find the right ctor and check its visibility)
The text was updated successfully, but these errors were encountered: