Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67514 - trunk/boost/spirit/home/phoenix/detail
From: joel_at_[hidden]
Date: 2010-12-31 06:51:50


Author: djowel
Date: 2010-12-31 06:51:49 EST (Fri, 31 Dec 2010)
New Revision: 67514
URL: http://svn.boost.org/trac/boost/changeset/67514

Log:
(corrected) Added specialization for T const in reference_type
Text files modified:
   trunk/boost/spirit/home/phoenix/detail/type_deduction.hpp | 10 ++++------
   1 files changed, 4 insertions(+), 6 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-31 06:51:49 EST (Fri, 31 Dec 2010)
@@ -242,6 +242,10 @@
         typedef typename C::reference type;
     };
 
+ template <typename T>
+ struct reference_type<T const>
+ : reference_type<T> {};
+
     template <typename T, std::size_t N>
     struct reference_type<T[N]>
     {
@@ -254,12 +258,6 @@
         typedef T& type;
     };
 
- template <typename T>
- struct reference_type<T* const>
- {
- typedef T const& type;
- };
-
     template <typename C>
     struct const_reference_type
     {


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk