|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r61246 - trunk/libs/spirit/example/scheme
From: joel_at_[hidden]
Date: 2010-04-13 10:05:29
Author: djowel
Date: 2010-04-13 10:05:28 EDT (Tue, 13 Apr 2010)
New Revision: 61246
URL: http://svn.boost.org/trac/boost/changeset/61246
Log:
workaround for iterator_range bug
Text files modified:
trunk/libs/spirit/example/scheme/scheme_interpreter.hpp | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
Modified: trunk/libs/spirit/example/scheme/scheme_interpreter.hpp
==============================================================================
--- trunk/libs/spirit/example/scheme/scheme_interpreter.hpp (original)
+++ trunk/libs/spirit/example/scheme/scheme_interpreter.hpp 2010-04-13 10:05:28 EDT (Tue, 13 Apr 2010)
@@ -1,4 +1,4 @@
-/*=============================================================================
+/*=============================================================================
Copyright (c) 2001-2010 Joel de Guzman
Distributed under the Boost Software License, Version 1.0. (See accompanying
@@ -39,7 +39,10 @@
: f() {}
actor(actor_function const& f)
- : f(f) {}
+ : f(f)
+ {
+ BOOST_ASSERT(!f.empty());
+ }
bool empty() const
{
@@ -123,7 +126,7 @@
typedef utree result_type;
utree operator()(args_type args) const
{
- return utree(boost::ref(args[n]));
+ return utree(boost::ref(*(args.begin()+n)));
}
};
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