|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r72469 - in trunk/libs/spirit/example/qi/compiler_tutorial: calc7 calc8 conjure1 conjure2 mini_c
From: joel_at_[hidden]
Date: 2011-06-07 12:02:36
Author: djowel
Date: 2011-06-07 12:02:35 EDT (Tue, 07 Jun 2011)
New Revision: 72469
URL: http://svn.boost.org/trac/boost/changeset/72469
Log:
fixed odd g++ behavior
Text files modified:
trunk/libs/spirit/example/qi/compiler_tutorial/calc7/compiler.cpp | 2 +-
trunk/libs/spirit/example/qi/compiler_tutorial/calc8/compiler.cpp | 2 +-
trunk/libs/spirit/example/qi/compiler_tutorial/conjure1/compiler.cpp | 2 +-
trunk/libs/spirit/example/qi/compiler_tutorial/conjure2/compiler.cpp | 3 ++-
trunk/libs/spirit/example/qi/compiler_tutorial/mini_c/compiler.cpp | 2 +-
5 files changed, 6 insertions(+), 5 deletions(-)
Modified: trunk/libs/spirit/example/qi/compiler_tutorial/calc7/compiler.cpp
==============================================================================
--- trunk/libs/spirit/example/qi/compiler_tutorial/calc7/compiler.cpp (original)
+++ trunk/libs/spirit/example/qi/compiler_tutorial/calc7/compiler.cpp 2011-06-07 12:02:35 EDT (Tue, 07 Jun 2011)
@@ -40,7 +40,7 @@
void program::add_var(std::string const& name)
{
- size_t n = variables.size();
+ std::size_t n = variables.size();
variables[name] = n;
}
Modified: trunk/libs/spirit/example/qi/compiler_tutorial/calc8/compiler.cpp
==============================================================================
--- trunk/libs/spirit/example/qi/compiler_tutorial/calc8/compiler.cpp (original)
+++ trunk/libs/spirit/example/qi/compiler_tutorial/calc8/compiler.cpp 2011-06-07 12:02:35 EDT (Tue, 07 Jun 2011)
@@ -42,7 +42,7 @@
void program::add_var(std::string const& name)
{
- size_t n = variables.size();
+ std::size_t n = variables.size();
variables[name] = n;
}
Modified: trunk/libs/spirit/example/qi/compiler_tutorial/conjure1/compiler.cpp
==============================================================================
--- trunk/libs/spirit/example/qi/compiler_tutorial/conjure1/compiler.cpp (original)
+++ trunk/libs/spirit/example/qi/compiler_tutorial/conjure1/compiler.cpp 2011-06-07 12:02:35 EDT (Tue, 07 Jun 2011)
@@ -45,7 +45,7 @@
void function::add_var(std::string const& name)
{
- size_t n = variables.size();
+ std::size_t n = variables.size();
variables[name] = n;
}
Modified: trunk/libs/spirit/example/qi/compiler_tutorial/conjure2/compiler.cpp
==============================================================================
--- trunk/libs/spirit/example/qi/compiler_tutorial/conjure2/compiler.cpp (original)
+++ trunk/libs/spirit/example/qi/compiler_tutorial/conjure2/compiler.cpp 2011-06-07 12:02:35 EDT (Tue, 07 Jun 2011)
@@ -46,7 +46,8 @@
void function::add_var(std::string const& name)
{
- variables[name] = variables.size();
+ std::size_t n = variables.size();
+ variables[name] = n;
}
void function::link_to(std::string const& name, std::size_t address)
Modified: trunk/libs/spirit/example/qi/compiler_tutorial/mini_c/compiler.cpp
==============================================================================
--- trunk/libs/spirit/example/qi/compiler_tutorial/mini_c/compiler.cpp (original)
+++ trunk/libs/spirit/example/qi/compiler_tutorial/mini_c/compiler.cpp 2011-06-07 12:02:35 EDT (Tue, 07 Jun 2011)
@@ -45,7 +45,7 @@
void function::add_var(std::string const& name)
{
- size_t n = variables.size();
+ std::size_t n = variables.size();
variables[name] = 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