native_const_error.cpp 444 B

1234567891011121314151617
  1. // Copyright (C) 2006-2009, 2012 Alexander Nasonov
  2. // Copyright (C) 2012 Lorenzo Caminiti
  3. // Distributed under the Boost Software License, Version 1.0
  4. // (see accompanying file LICENSE_1_0.txt or a copy at
  5. // http://www.boost.org/LICENSE_1_0.txt)
  6. // Home at http://www.boost.org/libs/scope_exit
  7. #include <boost/scope_exit.hpp>
  8. int main(void) {
  9. int const i = 0;
  10. BOOST_SCOPE_EXIT( (&i) ) {
  11. i = 5;
  12. } BOOST_SCOPE_EXIT_END
  13. }