]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/foreach/test/misc.cpp
3 // (C) Copyright Eric Niebler 2008.
4 // Use, modification and distribution are subject to the
5 // Boost Software License, Version 1.0. (See accompanying file
6 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
10 4 March 2008 : Initial version.
14 #include <boost/test/minimal.hpp>
15 #include <boost/foreach.hpp>
17 struct xxx
: std::vector
<int>
22 void test_abstract(xxx
& rng
)
24 BOOST_FOREACH (int x
, rng
)
30 struct yyy
: std::vector
<int>
34 BOOST_FOREACH(int x
, *this)
41 ///////////////////////////////////////////////////////////////////////////////
44 int test_main( int, char*[] )