X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2FScopeGuard.h;fp=folly%2FScopeGuard.h;h=0e2ac6d1b621ba11999bcc6de3114747802e6f76;hb=dee8a5180aa542d98d1b71c74f83a006e4627952;hp=8b16fae1e1deed2d330d8aa12809356530c8155d;hpb=94070f19ca0198f0874a853f934e5302f73b73ff;p=folly.git diff --git a/folly/ScopeGuard.h b/folly/ScopeGuard.h index 8b16fae1..0e2ac6d1 100644 --- a/folly/ScopeGuard.h +++ b/folly/ScopeGuard.h @@ -14,8 +14,7 @@ * limitations under the License. */ -#ifndef FOLLY_SCOPEGUARD_H_ -#define FOLLY_SCOPEGUARD_H_ +#pragma once #include #include @@ -276,5 +275,3 @@ operator+(detail::ScopeGuardOnExit, FunctionType&& fn) { auto FB_ANONYMOUS_VARIABLE(SCOPE_SUCCESS_STATE) \ = ::folly::detail::ScopeGuardOnSuccess() + [&]() #endif // native uncaught_exception() supported - -#endif // FOLLY_SCOPEGUARD_H_