forked from boostorg/fusion
tweaked cref_result and ref_result to be non-lazy (for consistency).
[SVN r78058]
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2011 Joel de Guzman
|
||||
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
==============================================================================*/
|
||||
#if !defined(FUSION_ACCESS_04182005_0737)
|
||||
@ -15,16 +15,16 @@ namespace boost { namespace fusion { namespace detail
|
||||
template <typename T>
|
||||
struct ref_result
|
||||
{
|
||||
typedef typename add_reference<typename T::type>::type type;
|
||||
typedef typename add_reference<T>::type type;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
struct cref_result
|
||||
{
|
||||
typedef typename
|
||||
typedef typename
|
||||
add_reference<
|
||||
typename add_const<typename T::type>::type
|
||||
>::type
|
||||
typename add_const<T>::type
|
||||
>::type
|
||||
type;
|
||||
};
|
||||
|
||||
@ -35,7 +35,7 @@ namespace boost { namespace fusion { namespace detail
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
struct call_param<T &>
|
||||
struct call_param<T&>
|
||||
{
|
||||
typedef T& type;
|
||||
};
|
||||
|
Reference in New Issue
Block a user