40 #ifndef SHARK_CORE_UTILITY_SCOPED_HANDLE_H 41 #define SHARK_CORE_UTILITY_SCOPED_HANDLE_H 45 #include <boost/assert.hpp> 46 #include <boost/bind/arg.hpp> 47 #include <boost/format.hpp> 48 #include <boost/function.hpp> 49 #include <boost/lambda/lambda.hpp> 50 #include <boost/noncopyable.hpp> 76 const DeleterType& deleter,
77 const std::string& handleDescription =
"")
80 m_isValidHandle(true),
83 BOOST_ASSERT(deleter);
85 throw SHARKEXCEPTION((boost::format(
"%s (FAILED)") % handleDescription).str());
100 const bool m_isValidHandle;
101 const DeleterType m_deleter;
106 #endif // SHARK_CORE_SCOPED_HANDLE_H