p≡p JSON adapter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
263 B

#pragma once
#include <memory>
namespace pEp
{
namespace utility
{
template<class T>
std::unique_ptr<T, void(*)(T*)> make_c_ptr(T* data, void(*Deleter)(T*))
{
return { data, Deleter };
}
} // end of namespace pEp::util
} // end of namespace pEp