1 // (C) Copyright Gennadiy Rozental 2001.
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
6 // See http://www.boost.org/libs/test for the library home page.
9 //!@brief contains mics. workarounds
10 // ***************************************************************************
12 #ifndef BOOST_TEST_WORKAROUND_HPP_021005GER
13 #define BOOST_TEST_WORKAROUND_HPP_021005GER
16 #include <boost/config.hpp> // compilers workarounds and std::ptrdiff_t
19 #include <iterator> // for std::distance
21 #include <boost/test/detail/suppress_warnings.hpp>
23 //____________________________________________________________________________//
29 #ifdef BOOST_NO_STD_DISTANCE
31 std::ptrdiff_t distance( T const& x_, T const& y_ )
33 std::ptrdiff_t res = 0;
35 std::distance( x_, y_, res );
40 //____________________________________________________________________________//
46 template <class T> inline void ignore_unused_variable_warning(const T&) {}
48 } // namespace ut_detail
49 } // namespace unit_test
52 //____________________________________________________________________________//
54 #include <boost/test/detail/enable_warnings.hpp>
56 #endif // BOOST_TEST_WORKAROUND_HPP_021005GER