2 // Copyright (C) 2006-2009, 2012 Alexander Nasonov
3 // Copyright (C) 2012 Lorenzo Caminiti
4 // Distributed under the Boost Software License, Version 1.0
5 // (see accompanying file LICENSE_1_0.txt or a copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
7 // Home at http://www.boost.org/libs/scope_exit
9 // No #include guard for this header.
11 #include <boost/scope_exit.hpp>
12 #include <boost/config.hpp>
17 inline int inline_f(void) {
20 BOOST_SCOPE_EXIT( (&i) ) {
22 } BOOST_SCOPE_EXIT_END
27 #if !defined(BOOST_INTEL) && defined(__GNUC__) && \
28 (__GNUC__ * 100 + __GNUC_MINOR__) >= 304
30 Int template_f(Int i) {
32 BOOST_SCOPE_EXIT_TPL( (&i) ) {
34 } BOOST_SCOPE_EXIT_END
39 inline int template_f(int i) {
41 BOOST_SCOPE_EXIT( (&i) ) {
43 } BOOST_SCOPE_EXIT_END