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
Using curlybraces in the factory. Unlike mentioned in § 9.1 this seems
to work.
main
offa
7 years ago
parent
aa331eceb1
commit
053e6edced
1 changed files
with
1 additions
and
1 deletions
Split View
Show Diff Stats
+1
-1
include/scope_guard.h
+ 1
- 1
include/scope_guard.h
View File
@@ -82,7 +82,7 @@ namespace sr
template<class Deleter>
scope_guard_t<Deleter> scope_guard(Deleter&& deleter) noexcept
{
return scope_guard_t<Deleter>
(std::move(deleter))
;
return scope_guard_t<Deleter>
{std::move(deleter)}
;
}
}
Write
Preview
Loading…
Cancel
Save