Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74919 - trunk/boost/proto/transform
From: eric_at_[hidden]
Date: 2011-10-11 14:41:17


Author: eric_niebler
Date: 2011-10-11 14:41:16 EDT (Tue, 11 Oct 2011)
New Revision: 74919
URL: http://svn.boost.org/trac/boost/changeset/74919

Log:
fix is_applyable to be safely usable with non-callable non-transforms
Text files modified:
   trunk/boost/proto/transform/make.hpp | 7 ++++++-
   1 files changed, 6 insertions(+), 1 deletions(-)

Modified: trunk/boost/proto/transform/make.hpp
==============================================================================
--- trunk/boost/proto/transform/make.hpp (original)
+++ trunk/boost/proto/transform/make.hpp 2011-10-11 14:41:16 EDT (Tue, 11 Oct 2011)
@@ -37,8 +37,13 @@
     namespace detail
     {
         template<typename T>
+ struct is_transform_wrap
+ : is_transform<T>
+ {};
+
+ template<typename T>
         struct is_applyable
- : mpl::and_<is_callable<T>, is_transform<T> >
+ : mpl::and_<is_callable<T>, is_transform_wrap<T> >
         {};
 
         template<typename T, bool HasType = mpl::aux::has_type<T>::value>


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