minor fixes to PR #368

This commit is contained in:
Wenzel Jakob
2016-08-28 02:03:15 +02:00
parent a3906778eb
commit 5e4e477b8b
2 changed files with 14 additions and 20 deletions

View File

@@ -350,11 +350,7 @@ PYBIND11_DECL_FMT(float, "f");
PYBIND11_DECL_FMT(double, "d");
PYBIND11_DECL_FMT(bool, "?");
// Helper class for exposing classes with a private destructor by overriding the deleter object of std::unique_ptr
template <typename T>
struct blank_deleter
{
void operator()(T*) {}
};
/// Dummy destructor wrapper that can be used to expose classes with a private destructor
struct nodelete { template <typename T> void operator()(T*) { } };
NAMESPACE_END(pybind11)