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
The current implementation does not invalidate the resource member, when it is in a moved-from or invalid state. To allow such a test, would mean to have the "empty" state as an additional template parameter. Microsoft has an implementation of a similar class that allows this (defining the empty state via a policy). With such, an empty/invalid state can be used.
I am thinking about resurrecting the unique_resource proposal with an implementation that keeps the resources in a std::optional. and have a moved-from state being an empty optional. This could then give a simple check for all such cases.
In the above case the query is the condition in the ASSERT_EQUAL
Additional context
Can support the valid checking for unique_resource?
Example:
I would expected:
The text was updated successfully, but these errors were encountered: