|
Boost-Commit : |
From: hartmut.kaiser_at_[hidden]
Date: 2008-07-28 22:12:59
Author: hkaiser
Date: 2008-07-28 22:12:59 EDT (Mon, 28 Jul 2008)
New Revision: 47860
URL: http://svn.boost.org/trac/boost/changeset/47860
Log:
Spirit: Applied pending commits from release branch
Text files modified:
trunk/libs/spirit/classic/test/symbols_add_null.cpp | 11 ++++++++---
trunk/libs/spirit/test/Jamfile | 2 +-
2 files changed, 9 insertions(+), 4 deletions(-)
Modified: trunk/libs/spirit/classic/test/symbols_add_null.cpp
==============================================================================
--- trunk/libs/spirit/classic/test/symbols_add_null.cpp (original)
+++ trunk/libs/spirit/classic/test/symbols_add_null.cpp 2008-07-28 22:12:59 EDT (Mon, 28 Jul 2008)
@@ -7,14 +7,19 @@
http://www.boost.org/LICENSE_1_0.txt)
=============================================================================*/
+#include <stdexcept>
+
#define BOOST_SPIRIT_ASSERT_EXCEPTION ::spirit_exception
-struct spirit_exception
+struct spirit_exception : std::exception
{
spirit_exception(char const * msg)
: message(msg)
{
}
+ ~spirit_exception() throw() {}
+
+ char const* what() const throw() { return message; }
char const * message;
};
@@ -51,7 +56,7 @@
symbols_.add(begin, end, (void*) boost::addressof(symbols_));
BOOST_TEST(0);
}
- catch (spirit_exception &e)
+ catch (spirit_exception &/*e*/)
{
}
@@ -61,7 +66,7 @@
symbols_.add(begin2, end2, (void*) boost::addressof(symbols_));
BOOST_TEST(0);
}
- catch (spirit_exception &e)
+ catch (spirit_exception &/*e*/)
{
}
return boost::report_errors();
Modified: trunk/libs/spirit/test/Jamfile
==============================================================================
--- trunk/libs/spirit/test/Jamfile (original)
+++ trunk/libs/spirit/test/Jamfile 2008-07-28 22:12:59 EDT (Mon, 28 Jul 2008)
@@ -6,7 +6,7 @@
# License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
#==============================================================================
-project spirit-tests
+project spirit_v2-tests
: requirements <toolset>gcc:<cxxflags>-ftemplate-depth-300
:
:
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