• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Boost test/bugs.hpp
2  * Handles namespace resolution quirks in older compilers and braindead
3  * warnings [Herve, June 3rd 2003]
4  *
5  * Copyright 2002-2003 Hervé Brönnimann
6  *
7  * Distributed under the Boost Software License, Version 1.0.
8  * (See accompanying file LICENSE_1_0.txt or
9  * copy at http://www.boost.org/LICENSE_1_0.txt)
10  */
11 
12 #include <boost/config.hpp>
13 
14 // Borland compiler complains about unused variables a bit easily and
15 // incorrectly
16 
17 #ifdef BOOST_BORLANDC
18 namespace detail {
19 
ignore_unused_variable_warning(const T &)20   template <class T> inline void ignore_unused_variable_warning(const T&) { }
21 
ignore_warnings()22   inline void ignore_warnings() {
23 #   ifdef BOOST_NUMERIC_INTERVAL_CONSTANTS_HPP
24     using namespace boost::numeric::interval_lib::constants;
25     ignore_unused_variable_warning( pi_f_l );
26     ignore_unused_variable_warning( pi_f_u );
27     ignore_unused_variable_warning( pi_d_l );
28     ignore_unused_variable_warning( pi_d_u );
29 #   endif
30   }
31 
32 }
33 #endif
34 
35 // Some compilers are broken with respect to name resolution
36 
37 #if defined(BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP) || defined( BOOST_BORLANDC)
38 
39 using namespace boost;
40 using namespace numeric;
41 using namespace interval_lib;
42 
43 #endif
44