@@ -112,6 +112,10 @@ namespace sr | |||
return m_deleter; | |||
} | |||
Deleter& get_deleter() noexcept | |||
{ | |||
return m_deleter; | |||
} | |||
unique_resource_t& operator=(unique_resource_t&& other) noexcept | |||
{ |
@@ -305,3 +305,4 @@ TEST_CASE("deleter access", "[UniqueResource]") | |||
guard.get_deleter()(6); | |||
REQUIRE(value == 6); | |||
} | |||