diff Resources/CodeGeneration/template.in.h @ 499:baa9e1e932db bgo-commands-codegen

wasm + ts demonstrator WORKS!
author bgo-osimis
date Sun, 24 Feb 2019 20:22:56 +0100
parents 6405435480ae
children ce49eae4c887
line wrap: on
line diff
--- a/Resources/CodeGeneration/template.in.h	Sun Feb 24 13:23:14 2019 +0100
+++ b/Resources/CodeGeneration/template.in.h	Sun Feb 24 20:22:56 2019 +0100
@@ -11,7 +11,6 @@
 #include <memory>
 #include <optional>
 #include <json/json.h>
-#include <gtest/gtest.h>
 
 //#define STONEGEN_NO_CPP11 1
 
@@ -126,7 +125,7 @@
   {
     Json::Value result(Json::objectValue);
 
-    for (std::map<std::string, T>::const_iterator it = value.cbegin();
+    for (typename std::map<std::string, T>::const_iterator it = value.cbegin();
       it != value.cend(); ++it)
     {
       // it->first it->second
@@ -139,7 +138,7 @@
   std::ostream& StoneDumpValue(std::ostream& out, const std::map<std::string,T>& value, int indent)
   {
     out << MakeIndent(indent) << "{\n";
-    for (std::map<std::string, T>::const_iterator it = value.cbegin();
+    for (typename std::map<std::string, T>::const_iterator it = value.cbegin();
       it != value.cend(); ++it)
     {
       out << MakeIndent(indent+2) << "\"" << it->first << "\" : ";