Updates to cope with Borland C++ 5.51

[SVN r7697]
This commit is contained in:
John Maddock 2000-09-09 10:20:24 +00:00
parent 5b06dd0d0d
commit 3ddb9abc3c
3 changed files with 3 additions and 5 deletions

View File

@ -53,7 +53,7 @@ using std::cin;
namespace opt{ namespace opt{
// //
// algorithm destroy_arry: // algorithm destroy_array:
// The reverse of std::unitialized_copy, takes a block of // The reverse of std::unitialized_copy, takes a block of
// unitialized memory and calls destructors on all objects therein. // unitialized memory and calls destructors on all objects therein.
// //

View File

@ -240,7 +240,7 @@ int main()
type_test(const int&, boost::call_traits<cr_type>::const_reference) type_test(const int&, boost::call_traits<cr_type>::const_reference)
type_test(int&, boost::call_traits<cr_type>::param_type) type_test(int&, boost::call_traits<cr_type>::param_type)
#else #else
std::cout << "GNU C++ cannot instantiate call_traits<cr_type>, skipping four tests (4 errors)" << std::endl; std::cout << "Your compiler cannot instantiate call_traits<int&const>, skipping four tests (4 errors)" << std::endl;
failures += 4; failures += 4;
test_count += 4; test_count += 4;
#endif #endif
@ -342,7 +342,6 @@ void call_traits_test<T, true>::assert_construct(boost::call_traits<T>::param_ty
param_type p4(p); param_type p4(p);
} }
#endif //BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION #endif //BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
// //
// now check call_traits assertions by instantiating call_traits_test: // now check call_traits assertions by instantiating call_traits_test:
template struct call_traits_test<int>; template struct call_traits_test<int>;
@ -354,4 +353,3 @@ template struct call_traits_test<const int&>;
template struct call_traits_test<int[2], true>; template struct call_traits_test<int[2], true>;
#endif #endif

View File

@ -76,7 +76,7 @@ struct call_traits<T&>
typedef T& param_type; // hh removed const typedef T& param_type; // hh removed const
}; };
#if defined(__BORLANDC__) && (__BORLANDC__ <= 0x550) #if defined(__BORLANDC__) && (__BORLANDC__ <= 0x551)
// these are illegal specialisations; cv-qualifies applied to // these are illegal specialisations; cv-qualifies applied to
// references have no effect according to [8.3.2p1], // references have no effect according to [8.3.2p1],
// C++ Builder requires them though as it treats cv-qualified // C++ Builder requires them though as it treats cv-qualified