|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r56194 - trunk/libs/spirit/example/karma
From: hartmut.kaiser_at_[hidden]
Date: 2009-09-14 17:15:16
Author: hkaiser
Date: 2009-09-14 17:15:15 EDT (Mon, 14 Sep 2009)
New Revision: 56194
URL: http://svn.boost.org/trac/boost/changeset/56194
Log:
Spirit: fixing compilation problems on gcc
Text files modified:
trunk/libs/spirit/example/karma/printf_style_double_format.cpp | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
Modified: trunk/libs/spirit/example/karma/printf_style_double_format.cpp
==============================================================================
--- trunk/libs/spirit/example/karma/printf_style_double_format.cpp (original)
+++ trunk/libs/spirit/example/karma/printf_style_double_format.cpp 2009-09-14 17:15:15 EDT (Mon, 14 Sep 2009)
@@ -138,10 +138,10 @@
int floatfield(T n) const
{
if (format_.type == 'e' || format_.type == 'E')
- return fmtflags::scientific;
+ return base_policy_type::fmtflags::scientific;
if (format_.type == 'f')
- return fmtflags::fixed;
+ return base_policy_type::fmtflags::fixed;
BOOST_ASSERT(format_.type == 'g' || format_.type == 'G');
return this->base_policy_type::floatfield(n);
@@ -177,10 +177,11 @@
{
if (format_.type == 'E' || format_.type == 'G') {
// print exponent symbol in upper case
- return this->base_policy_type::exponent<
- char_encoding::ascii, tag::upper>(sink, n);
+ return this->base_policy_type::
+ template exponent<char_encoding::ascii, tag::upper>(sink, n);
}
- return this->base_policy_type::exponent<CharEncoding, Tag>(sink, n);
+ return this->base_policy_type::
+ template exponent<CharEncoding, Tag>(sink, 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