|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r53574 - trunk/boost/spirit/home/qi/numeric
From: joel_at_[hidden]
Date: 2009-06-02 12:13:17
Author: djowel
Date: 2009-06-02 12:13:16 EDT (Tue, 02 Jun 2009)
New Revision: 53574
URL: http://svn.boost.org/trac/boost/changeset/53574
Log:
fixed bug exposed by VC9
Text files modified:
trunk/boost/spirit/home/qi/numeric/numeric_utils.hpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
Modified: trunk/boost/spirit/home/qi/numeric/numeric_utils.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/numeric/numeric_utils.hpp (original)
+++ trunk/boost/spirit/home/qi/numeric/numeric_utils.hpp 2009-06-02 12:13:16 EDT (Tue, 02 Jun 2009)
@@ -51,6 +51,9 @@
template <typename Iterator, typename Attribute>
static bool call(Iterator& first, Iterator const& last, Attribute& attr)
{
+ if (first == last)
+ return false;
+
typedef detail::extract_int<
T
, Radix
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