Index: C:/CVS/boost/libs/spirit/example/qi/compiler_tutorial/conjure1/compiler.cpp =================================================================== --- C:/CVS/boost/libs/spirit/example/qi/compiler_tutorial/conjure1/compiler.cpp (revision 72466) +++ C:/CVS/boost/libs/spirit/example/qi/compiler_tutorial/conjure1/compiler.cpp (revision 72467) @@ -45,7 +45,8 @@ void function::add_var(std::string const& name) { - variables[name] = variables.size(); + size_t n = variables.size(); + variables[name] = n; } void function::link_to(std::string const& name, std::size_t address) Index: C:/CVS/boost/libs/spirit/example/qi/compiler_tutorial/calc7/compiler.cpp =================================================================== --- C:/CVS/boost/libs/spirit/example/qi/compiler_tutorial/calc7/compiler.cpp (revision 72466) +++ C:/CVS/boost/libs/spirit/example/qi/compiler_tutorial/calc7/compiler.cpp (revision 72467) @@ -40,7 +40,8 @@ void program::add_var(std::string const& name) { - variables[name] = variables.size(); + size_t n = variables.size(); + variables[name] = n; } void program::print_variables(std::vector const& stack) const Index: C:/CVS/boost/libs/spirit/example/qi/compiler_tutorial/calc8/compiler.cpp =================================================================== --- C:/CVS/boost/libs/spirit/example/qi/compiler_tutorial/calc8/compiler.cpp (revision 72466) +++ C:/CVS/boost/libs/spirit/example/qi/compiler_tutorial/calc8/compiler.cpp (revision 72467) @@ -42,7 +42,8 @@ void program::add_var(std::string const& name) { - variables[name] = variables.size(); + size_t n = variables.size(); + variables[name] = n; } void program::print_variables(std::vector const& stack) const Index: C:/CVS/boost/libs/spirit/example/qi/compiler_tutorial/mini_c/compiler.cpp =================================================================== --- C:/CVS/boost/libs/spirit/example/qi/compiler_tutorial/mini_c/compiler.cpp (revision 72466) +++ C:/CVS/boost/libs/spirit/example/qi/compiler_tutorial/mini_c/compiler.cpp (revision 72467) @@ -45,7 +45,8 @@ void function::add_var(std::string const& name) { - variables[name] = variables.size(); + size_t n = variables.size(); + variables[name] = n; } void function::link_to(std::string const& name, std::size_t address)