Hopson97/HopsonCraft

error: 'vector' in namespace 'std' does not name a template type

Closed this issue · 1 comments

Release 1.4.1

CMakeFiles/game.dir/build.make:1769: recipe for target 'CMakeFiles/game.dir/Source/World/Generators/Structures_Builder.cpp.o' failed
In file included from /builddir/build/BUILD/HopsonCraft-A1.4.1/Source/World/Generators/Structures_Builder.cpp:1:0:
/builddir/build/BUILD/HopsonCraft-A1.4.1/Source/World/Generators/Structures_Builder.h:37:18: error: 'vector' in namespace 'std' does not name a template type
             std::vector<Defer_Block> m_deferBlocks;
                  ^~~~~~
/builddir/build/BUILD/HopsonCraft-A1.4.1/Source/World/Generators/Structures_Builder.cpp: In member function 'void Structure::Builder::addBlock(const Structure::Builder::Defer_Block&)':
/builddir/build/BUILD/HopsonCraft-A1.4.1/Source/World/Generators/Structures_Builder.cpp:9:9: error: 'm_deferBlocks' was not declared in this scope
         m_deferBlocks.push_back(std::move(block));
         ^~~~~~~~~~~~~
/builddir/build/BUILD/HopsonCraft-A1.4.1/Source/World/Generators/Structures_Builder.cpp: In member function 'void Structure::Builder::build(IBlock_Accessible&)':
/builddir/build/BUILD/HopsonCraft-A1.4.1/Source/World/Generators/Structures_Builder.cpp:14:28: error: 'm_deferBlocks' was not declared in this scope
         for (auto& block : m_deferBlocks)
                            ^~~~~~~~~~~~~
/builddir/build/BUILD/HopsonCraft-A1.4.1/Source/World/Generators/Structures_Builder.cpp: In member function 'void Structure::Builder::fillXZ(const Position&, const Position&, CBlock)':
/builddir/build/BUILD/HopsonCraft-A1.4.1/Source/World/Generators/Structures_Builder.cpp:31:13: error: 'm_deferBlocks' was not declared in this scope
             m_deferBlocks.emplace_back(x, y, z, fill);
             ^~~~~~~~~~~~~
/builddir/build/BUILD/HopsonCraft-A1.4.1/Source/World/Generators/Structures_Builder.cpp: In member function 'void Structure::Builder::makeColumn(const Position&, int, CBlock)':
/builddir/build/BUILD/HopsonCraft-A1.4.1/Source/World/Generators/Structures_Builder.cpp:39:13: error: 'm_deferBlocks' was not declared in this scope
             m_deferBlocks.emplace_back(base.x, y, base.z, block);
             ^~~~~~~~~~~~~

Including <vector> in Source/World/Generators/Structures_Builder.h fixes this.