1 // (C) Copyright Terje Slettebo 2001.
2 // (C) Copyright John Maddock 2001.
3 // Use, modification and distribution are subject to the
4 // Boost Software License, Version 1.0. (See accompanying file
5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 // See http://www.boost.org/libs/config for most recent version.
9 // MACRO: BOOST_HAS_NRVO
10 // TITLE: Named return value optimisation.
11 // DESCRIPTION: Named return value optimisation.
14 namespace boost_has_nrvo
21 test_class(const test_class&)
26 static int copy_count;
29 int test_class::copy_count;
40 test_class::copy_count=0;
44 return test_class::copy_count;
47 } // namespace boost_has_nrvo