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:
Markus Mäkelä
2018-08-19 07:30:34 +03:00
parent 0a0623003e
commit 02ed338afa
5 changed files with 22 additions and 47 deletions

View File

@ -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