Remove mxs::Closer<json_t*>
As std::unique_ptr can now be used with a json_t, there's no need for the closer.
This commit is contained in:
@ -154,7 +154,10 @@ struct CloserTraits
|
||||
*
|
||||
* @param t Close the resource *if* it has not been closed already.
|
||||
*/
|
||||
static void close_if(T t);
|
||||
static void close_if(T t)
|
||||
{
|
||||
static_assert(sizeof(T) != sizeof(T), "The base closer should never be used");
|
||||
}
|
||||
|
||||
/**
|
||||
* Resets a reference to a resource. After the call, the value of t should
|
||||
|
||||
Reference in New Issue
Block a user