|
Boost : |
Subject: Re: [boost] [Boost-commit] svn:boost r67496 - trunk/boost/spirit/home/phoenix/detail
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-12-30 11:02:05
AMDG
On 12/29/2010 3:38 PM, joel_at_[hidden] wrote:
> Author: djowel
> Date: 2010-12-29 18:38:19 EST (Wed, 29 Dec 2010)
> New Revision: 67496
> URL: http://svn.boost.org/trac/boost/changeset/67496
>
> Log:
> Added specialization for T const* in reference_type
The code says T* const. Which should it be?
> Text files modified:
> trunk/boost/spirit/home/phoenix/detail/type_deduction.hpp | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> Modified: trunk/boost/spirit/home/phoenix/detail/type_deduction.hpp
> ==============================================================================
> --- trunk/boost/spirit/home/phoenix/detail/type_deduction.hpp (original)
> +++ trunk/boost/spirit/home/phoenix/detail/type_deduction.hpp 2010-12-29 18:38:19 EST (Wed, 29 Dec 2010)
> @@ -254,6 +254,12 @@
> typedef T& type;
> };
>
> + template<typename T>
> + struct reference_type<T* const>
> + {
> + typedef T const& type;
> + };
> +
> template<typename C>
> struct const_reference_type
> {
In Christ,
Steven Watanabe
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk