diff --git a/gen-C++ b/gen-C++ index 415cab1..924cd47 100755 --- a/gen-C++ +++ b/gen-C++ @@ -1,4 +1,5 @@ c++ -o test_memory_C++ \ + -std=c++11 \ -Ilanguage-C++/Memory/src \ language-C++/Memory/src/Memory.Aux.cpp \ language-C++/Memory/src/Memory.Test.cpp \ diff --git a/language-C++/Memory/src/Memory.Aux.cpp b/language-C++/Memory/src/Memory.Aux.cpp index be596b3..af6888e 100644 --- a/language-C++/Memory/src/Memory.Aux.cpp +++ b/language-C++/Memory/src/Memory.Aux.cpp @@ -5,7 +5,7 @@ std::map memory_generateConstPlayfield( int n ) { std::map idGroups; - int id = 0; + auto id = 0; for (int gid = 0; gid < n; ++gid) { idGroups[id] = gid; id += 1;