1
// (C) Copyright Eric Niebler 2005.
2
// Use, modification and distribution are subject to the
3
// Boost Software License, Version 1.0. (See accompanying file
4
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8
25 August 2005 : Initial version.
11
#include <mlib/tests/_pc_.h>
12
//#include <boost/test/minimal.hpp>
13
#include <boost/foreach.hpp>
17
static int counter = 0;
19
static std::vector<int> my_vector(4,4);
21
static std::vector<int> const &get_vector()
28
///////////////////////////////////////////////////////////////////////////////
31
BOOST_AUTO_TEST_CASE( call_once )
33
BOOST_FOREACH(int i, get_vector())
38
BOOST_CHECK(1 == counter);