Bläddra i källkod

Using curlybraces in the factory. Unlike mentioned in § 9.1 this seems

to work.
main
offa 7 år sedan
förälder
incheckning
053e6edced
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. +1
    -1
      include/scope_guard.h

+ 1
- 1
include/scope_guard.h Visa fil

@@ -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)};
}

}

Laddar…
Avbryt
Spara