Browse Source

Return value of release() corrected (fixes #19).

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

+ 1
- 1
include/unique_resource.h View File

m_execute_on_destruction = ( strategy == invoke_it::again ); m_execute_on_destruction = ( strategy == invoke_it::again );
} }


const Ressource& release() noexcept
Ressource release() noexcept
{ {
m_execute_on_destruction = false; m_execute_on_destruction = false;
return m_resource; return m_resource;

Loading…
Cancel
Save