This website works better with JavaScript.
Home
Explore
Help
Sign In
visus
/
scope-guard
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Return value of release() corrected (
fixes
#19
).
main
offa
7 years ago
parent
6bced82d22
commit
b234a5a25d
1 changed files
with
1 additions
and
1 deletions
Split View
Show Diff Stats
+1
-1
include/unique_resource.h
+ 1
- 1
include/unique_resource.h
View File
@@ -69,7 +69,7 @@ namespace sr
m_execute_on_destruction = ( strategy == invoke_it::again );
}
const
Ressource
&
release() noexcept
Ressource release() noexcept
{
m_execute_on_destruction = false;
return m_resource;
Write
Preview
Loading…
Cancel
Save