From 90c56ba2cec102bb666c74ab38966dd82c23bcb5 Mon Sep 17 00:00:00 2001 From: Alisdair Meredith Date: Sun, 12 Feb 2006 20:16:31 +0000 Subject: [PATCH] Update for BCB2006 [SVN r32865] --- include/boost/detail/call_traits.hpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/include/boost/detail/call_traits.hpp b/include/boost/detail/call_traits.hpp index a76c64c..54d441c 100644 --- a/include/boost/detail/call_traits.hpp +++ b/include/boost/detail/call_traits.hpp @@ -58,7 +58,7 @@ struct ct_imp template struct ct_imp { - typedef T const param_type; + typedef const T param_type; }; } @@ -92,7 +92,7 @@ struct call_traits typedef T& param_type; // hh removed const }; -#if BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT( 0x570 ) ) +#if BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT( 0x581 ) ) // these are illegal specialisations; cv-qualifies applied to // references have no effect according to [8.3.2p1], // C++ Builder requires them though as it treats cv-qualified @@ -121,6 +121,15 @@ struct call_traits typedef const T& const_reference; typedef T& param_type; // hh removed const }; + +template +struct call_traits< T * > +{ + typedef T * value_type; + typedef T * & reference; + typedef T * const & const_reference; + typedef T * const param_type; // hh removed const +}; #endif #if !defined(BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS) template