1
2// Copyright (C) 2009-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/local_function
7
8#include "const_block.hpp"
9#include <cassert>
10
11int main(void) {
12 int x = 0, y = 0;
13 CONST_BLOCK(x, y) {
14 assert(x == y);
15 } CONST_BLOCK_END
16 return 0;
17}
18
19

source code of boost/libs/local_function/example/const_block.cpp