|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r62688 - trunk/boost/algorithm/string/detail
From: steven_at_[hidden]
Date: 2010-06-09 16:16:22
Author: steven_watanabe
Date: 2010-06-09 16:16:21 EDT (Wed, 09 Jun 2010)
New Revision: 62688
URL: http://svn.boost.org/trac/boost/changeset/62688
Log:
Use result_type instead of sig for predicates. Fixes #2868
Text files modified:
trunk/boost/algorithm/string/detail/classification.hpp | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
Modified: trunk/boost/algorithm/string/detail/classification.hpp
==============================================================================
--- trunk/boost/algorithm/string/detail/classification.hpp (original)
+++ trunk/boost/algorithm/string/detail/classification.hpp 2010-06-09 16:16:21 EDT (Wed, 09 Jun 2010)
@@ -32,8 +32,8 @@
struct is_classifiedF :
public predicate_facade<is_classifiedF>
{
- // Boost.Lambda support
- template <class Args> struct sig { typedef bool type; };
+ // Boost.ResultOf support
+ typedef bool result_type;
// Constructor from a locale
is_classifiedF(std::ctype_base::mask Type, std::locale const & Loc = std::locale()) :
@@ -72,8 +72,8 @@
typedef typename ::boost::remove_const<CharT>::type set_value_type;
public:
- // Boost.Lambda support
- template <class Args> struct sig { typedef bool type; };
+ // Boost.ResultOf support
+ typedef bool result_type;
// Constructor
template<typename RangeT>
@@ -253,8 +253,8 @@
struct is_from_rangeF :
public predicate_facade< is_from_rangeF<CharT> >
{
- // Boost.Lambda support
- template <class Args> struct sig { typedef bool type; };
+ // Boost.ResultOf support
+ typedef bool result_type;
// Constructor
is_from_rangeF( CharT From, CharT To ) : m_From(From), m_To(To) {}
@@ -278,8 +278,8 @@
{
public:
- // Boost.Lambda support
- template <class Args> struct sig { typedef bool type; };
+ // Boost.ResultOf support
+ typedef bool result_type;
// Constructor
pred_andF( Pred1T Pred1, Pred2T Pred2 ) :
@@ -303,8 +303,8 @@
public predicate_facade< pred_orF<Pred1T,Pred2T> >
{
public:
- // Boost.Lambda support
- template <class Args> struct sig { typedef bool type; };
+ // Boost.ResultOf support
+ typedef bool result_type;
// Constructor
pred_orF( Pred1T Pred1, Pred2T Pred2 ) :
@@ -328,8 +328,8 @@
public predicate_facade< pred_notF<PredT> >
{
public:
- // Boost.Lambda support
- template <class Args> struct sig { typedef bool type; };
+ // Boost.ResultOf support
+ typedef bool result_type;
// Constructor
pred_notF( PredT Pred ) : m_Pred(Pred) {}
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