bugs.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. #include <boost/config.hpp>
  12. // Borland compiler complains about unused variables a bit easily and
  13. // incorrectly
  14. #ifdef __BORLANDC__
  15. namespace detail {
  16. template <class T> inline void ignore_unused_variable_warning(const T&) { }
  17. inline void ignore_warnings() {
  18. # ifdef BOOST_NUMERIC_INTERVAL_CONSTANTS_HPP
  19. using namespace boost::numeric::interval_lib::constants;
  20. ignore_unused_variable_warning( pi_f_l );
  21. ignore_unused_variable_warning( pi_f_u );
  22. ignore_unused_variable_warning( pi_d_l );
  23. ignore_unused_variable_warning( pi_d_u );
  24. # endif
  25. }
  26. }
  27. #endif
  28. // Some compilers are broken with respect to name resolution
  29. #if defined(BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP) || defined( __BORLANDC__)
  30. using namespace boost;
  31. using namespace numeric;
  32. using namespace interval_lib;
  33. #endif