|
Boost-Commit : |
From: tschwinger_at_[hidden]
Date: 2007-12-03 08:25:27
Author: t_schwinger
Date: 2007-12-03 08:25:26 EST (Mon, 03 Dec 2007)
New Revision: 41642
URL: http://svn.boost.org/trac/boost/changeset/41642
Log:
Strips top-level cv-qualifiers off non-reference types, now.
Text files modified:
trunk/boost/fusion/support/deduce.hpp | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
Modified: trunk/boost/fusion/support/deduce.hpp
==============================================================================
--- trunk/boost/fusion/support/deduce.hpp (original)
+++ trunk/boost/fusion/support/deduce.hpp 2007-12-03 08:25:26 EST (Mon, 03 Dec 2007)
@@ -25,6 +25,24 @@
typedef T type;
};
+ template <typename T>
+ struct deduce<T const>
+ {
+ typedef T type;
+ };
+
+ template <typename T>
+ struct deduce<T volatile>
+ {
+ typedef T type;
+ };
+
+ template <typename T>
+ struct deduce<T const volatile>
+ {
+ typedef T type;
+ };
+
// Keep references on mutable LValues
template <typename T>
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