Boost logo

Boost-Commit :

From: eric_at_[hidden]
Date: 2008-05-21 15:40:43


Author: eric_niebler
Date: 2008-05-21 15:40:42 EDT (Wed, 21 May 2008)
New Revision: 45617
URL: http://svn.boost.org/trac/boost/changeset/45617

Log:
members of lvalues are lvalues
Text files modified:
   branches/proto/v4/boost/proto/detail/decltype.hpp | 6 ++++++
   1 files changed, 6 insertions(+), 0 deletions(-)

Modified: branches/proto/v4/boost/proto/detail/decltype.hpp
==============================================================================
--- branches/proto/v4/boost/proto/detail/decltype.hpp (original)
+++ branches/proto/v4/boost/proto/detail/decltype.hpp 2008-05-21 15:40:42 EDT (Wed, 21 May 2008)
@@ -148,6 +148,12 @@
             typedef T type;
         };
 
+ template<typename T, typename U, typename V>
+ struct result_of_<T U::*(V &)>
+ {
+ typedef T &type;
+ };
+
         ////////////////////////////////////////////////////////////////////////////////////////////
         template<typename T, typename U = T>
         struct result_of_fixup


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