|
Last change
on this file since 29 was
29,
checked in by landauf, 17 years ago
|
|
updated boost from 1_33_1 to 1_34_1
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 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 __BORLANDC__ |
|---|
| 18 | namespace detail { |
|---|
| 19 | |
|---|
| 20 | template <class T> inline void ignore_unused_variable_warning(const T&) { } |
|---|
| 21 | |
|---|
| 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( __BORLANDC__) |
|---|
| 38 | |
|---|
| 39 | using namespace boost; |
|---|
| 40 | using namespace numeric; |
|---|
| 41 | using namespace interval_lib; |
|---|
| 42 | |
|---|
| 43 | #endif |
|---|
Note: See
TracBrowser
for help on using the repository browser.