|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r59276 - trunk/boost/fusion/view/nview
From: hartmut.kaiser_at_[hidden]
Date: 2010-01-27 11:25:42
Author: hkaiser
Date: 2010-01-27 11:25:41 EST (Wed, 27 Jan 2010)
New Revision: 59276
URL: http://svn.boost.org/trac/boost/changeset/59276
Log:
Fusion: adding overload for const parameter types
Text files modified:
trunk/boost/fusion/view/nview/nview.hpp | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
Modified: trunk/boost/fusion/view/nview/nview.hpp
==============================================================================
--- trunk/boost/fusion/view/nview/nview.hpp (original)
+++ trunk/boost/fusion/view/nview/nview.hpp 2010-01-27 11:25:41 EST (Wed, 27 Jan 2010)
@@ -57,6 +57,13 @@
{
return x;
}
+
+ template <typename T>
+ typename boost::result_of<addconstref(T)>::type
+ operator()(T const& x) const
+ {
+ return x;
+ }
};
}
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