Browse Source

Using the parameter.

main
offa 7 years ago
parent
commit
8d249a7fd7
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      include/unique_resource.h

+ 1
- 3
include/unique_resource.h View File



explicit unique_resource_t(Ressource&& res, Deleter&& deleter, bool shouldrun = true) noexcept : m_resource(std::move(res)), explicit unique_resource_t(Ressource&& res, Deleter&& deleter, bool shouldrun = true) noexcept : m_resource(std::move(res)),
m_deleter(std::move(deleter)), m_deleter(std::move(deleter)),
m_execute_on_destruction(true)
m_execute_on_destruction(shouldrun)


{ {
static_cast<void>(res);
static_cast<void>(shouldrun);
} }





Loading…
Cancel
Save