BeOS5 (intel) fixes

[SVN r8133]
This commit is contained in:
John Maddock 2000-11-04 11:16:12 +00:00
parent 45bfe0b607
commit 26119613e1
3 changed files with 9 additions and 1 deletions

View File

@ -134,7 +134,9 @@ template class boost::compressed_pair<empty_UDT, empty_POD_UDT>;
// first references: // first references:
template double& compressed_pair<double, int&>::first(); template double& compressed_pair<double, int&>::first();
template int& compressed_pair<double, int&>::second(); template int& compressed_pair<double, int&>::second();
#if !(defined(__GNUC__) && (__GNUC__ == 2) && (__GNUC_MINOR__ < 95))
template compressed_pair<double, int&>::compressed_pair(int&); template compressed_pair<double, int&>::compressed_pair(int&);
#endif
template compressed_pair<double, int&>::compressed_pair(call_traits<double>::param_type,int&); template compressed_pair<double, int&>::compressed_pair(call_traits<double>::param_type,int&);
// //
// and then arrays: // and then arrays:
@ -142,7 +144,9 @@ template compressed_pair<double, int&>::compressed_pair(call_traits<double>::par
template call_traits<int[2]>::reference compressed_pair<double, int[2]>::second(); template call_traits<int[2]>::reference compressed_pair<double, int[2]>::second();
#endif #endif
template call_traits<double>::reference compressed_pair<double, int[2]>::first(); template call_traits<double>::reference compressed_pair<double, int[2]>::first();
template compressed_pair<double, int[2]>::compressed_pair(const double&); #if !(defined(__GNUC__) && (__GNUC__ == 2) && (__GNUC_MINOR__ < 95))
template compressed_pair<double, int[2]>::compressed_pair(call_traits<double>::param_type);
#endif
template compressed_pair<double, int[2]>::compressed_pair(); template compressed_pair<double, int[2]>::compressed_pair();
#endif // __MWERKS__ #endif // __MWERKS__
#endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION #endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION

View File

@ -75,7 +75,9 @@ namespace details
template <typename T> template <typename T>
inline void cp_swap(T& t1, T& t2) inline void cp_swap(T& t1, T& t2)
{ {
#ifndef __GNUC__
using std::swap; using std::swap;
#endif
swap(t1, t2); swap(t1, t2);
} }

View File

@ -35,6 +35,7 @@ struct ct_checker
#ifdef BOOST_MSVC #ifdef BOOST_MSVC
#define value_test(v, x) ++test_count;\ #define value_test(v, x) ++test_count;\
{typedef ct_checker<(x)> this_is_a_compile_time_check_;}\
if(!do_compare((int)v,(int)x)){++failures; std::cout << "checking value of " << #x << "...failed" << std::endl;} if(!do_compare((int)v,(int)x)){++failures; std::cout << "checking value of " << #x << "...failed" << std::endl;}
#else #else
#define value_test(v, x) ++test_count;\ #define value_test(v, x) ++test_count;\
@ -108,3 +109,4 @@ unsigned test_count = 0;
#endif // BOOST_TYPE_TRAITS_TEST_HPP #endif // BOOST_TYPE_TRAITS_TEST_HPP