Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55077 - sandbox/committee/LWG/proposals
From: dgregor_at_[hidden]
Date: 2009-07-22 01:27:21


Author: dgregor
Date: 2009-07-22 01:27:20 EDT (Wed, 22 Jul 2009)
New Revision: 55077
URL: http://svn.boost.org/trac/boost/changeset/55077

Log:
Fix a bug in our use of decltype, from James Widman

Text files modified:
   sandbox/committee/LWG/proposals/taxonomy-of-concepts-and-maps.rst | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: sandbox/committee/LWG/proposals/taxonomy-of-concepts-and-maps.rst
==============================================================================
--- sandbox/committee/LWG/proposals/taxonomy-of-concepts-and-maps.rst (original)
+++ sandbox/committee/LWG/proposals/taxonomy-of-concepts-and-maps.rst 2009-07-22 01:27:20 EDT (Wed, 22 Jul 2009)
@@ -88,7 +88,7 @@
          template <typename ...Args>
             requires Callable<Lambda, Args...>
               && **HasPlus<Callable<Lambda, Args...>::result_type, RHS>**
- auto operator()(Args ...args) -> decltype(f(args...) + r)
+ auto operator()(Args ...args) -> decltype((\*(Lambda\*)0)(args...) + (\*(RHS const \*)0))
          {
              return f(args...) + r;
          }


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