|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r54955 - trunk/libs/spirit/example/karma
From: hartmut.kaiser_at_[hidden]
Date: 2009-07-14 20:19:33
Author: hkaiser
Date: 2009-07-14 20:19:31 EDT (Tue, 14 Jul 2009)
New Revision: 54955
URL: http://svn.boost.org/trac/boost/changeset/54955
Log:
Spirit: fixing gcc compilation error
Text files modified:
trunk/libs/spirit/example/karma/format_performance.cpp | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
Modified: trunk/libs/spirit/example/karma/format_performance.cpp
==============================================================================
--- trunk/libs/spirit/example/karma/format_performance.cpp (original)
+++ trunk/libs/spirit/example/karma/format_performance.cpp 2009-07-14 20:19:31 EDT (Tue, 14 Jul 2009)
@@ -12,19 +12,19 @@
#include "high_resolution_timer.hpp"
-#define NUMITERATIONS 100000
+#define NUMITERATIONS 1000000
///////////////////////////////////////////////////////////////////////////////
// policy for real_generator, which forces to output trailing zeros in the
// fractional part
template <typename T>
-struct double3 : boost::spirit::karma::real_policies<T>
+struct double3_policy : boost::spirit::karma::real_policies<T>
{
// we want to generate up to 3 fractional digits
static unsigned int precision(T) { return 3; }
};
-typedef boost::spirit::karma::real_generator<double, double3<double> >
+typedef boost::spirit::karma::real_generator<double, double3_policy<double> >
double3_type;
double3_type const double3 = double3_type();
@@ -154,12 +154,12 @@
///////////////////////////////////////////////////////////////////////////////
int main()
{
-// format_performance_printf();
-// format_performance_iostreams();
-// format_performance_boost_format();
+ format_performance_printf();
+ format_performance_iostreams();
+ format_performance_boost_format();
format_performance_karma();
-// format_performance_karma_string();
-// format_performance_karma_rule();
+ format_performance_karma_string();
+ format_performance_karma_rule();
return 0;
}
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