1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/stdapis/boost/mpl/aux_/ptr_to_ref.hpp Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,46 @@
1.4 +
1.5 +#ifndef BOOST_MPL_AUX_PTR_TO_REF_HPP_INCLUDED
1.6 +#define BOOST_MPL_AUX_PTR_TO_REF_HPP_INCLUDED
1.7 +
1.8 +// Copyright Aleksey Gurtovoy 2003-2004
1.9 +//
1.10 +// Distributed under the Boost Software License, Version 1.0.
1.11 +// (See accompanying file LICENSE_1_0.txt or copy at
1.12 +// http://www.boost.org/LICENSE_1_0.txt)
1.13 +//
1.14 +// See http://www.boost.org/libs/mpl for documentation.
1.15 +
1.16 +// $Source: /cvsroot/boost/boost/boost/mpl/aux_/ptr_to_ref.hpp,v $
1.17 +// $Date: 2005/06/22 15:20:18 $
1.18 +// $Revision: 1.5 $
1.19 +
1.20 +#include <boost/mpl/aux_/static_cast.hpp>
1.21 +#include <boost/mpl/aux_/config/msvc.hpp>
1.22 +#include <boost/mpl/aux_/config/workaround.hpp>
1.23 +
1.24 +
1.25 +#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1400)) \
1.26 + || ( BOOST_WORKAROUND(__EDG_VERSION__, <= 245) \
1.27 + && !(defined(__STD_STRICT_ANSI) \
1.28 + || defined(__STD_STRICT_ANSI_ERRORS)) )
1.29 +
1.30 +# define BOOST_MPL_AUX_PTR_TO_REF(X) \
1.31 + *BOOST_MPL_AUX_STATIC_CAST(X*, 0) \
1.32 +/**/
1.33 +
1.34 +#else
1.35 +
1.36 +# define BOOST_MPL_AUX_PTR_TO_REF(X) \
1.37 + aux::ptr_to_ref(BOOST_MPL_AUX_STATIC_CAST(X*, 0)) \
1.38 +/**/
1.39 +
1.40 +#endif
1.41 +
1.42 +
1.43 +namespace boost { namespace mpl { namespace aux {
1.44 +
1.45 +template< typename T > static T const& ptr_to_ref(T*);
1.46 +
1.47 +}}}
1.48 +
1.49 +#endif // BOOST_MPL_AUX_PTR_TO_REF_HPP_INCLUDED