moya-lang / Allocator

Ultra fast C++11 allocator for STL containers.
BSD 2-Clause "Simplified" License
273 stars 25 forks source link

Update to measure test causes compiler error #15

Closed mcordery closed 2 years ago

mcordery commented 3 years ago

make g++ --std=c++17 -Wall Measure.cpp -O3 -o Measure Measure.cpp: In instantiation of ‘void MapTest::testIteration(size_t) [with Container = std::map<long unsigned int, long unsigned int, std::less, Moya::Allocator<std::pair<const long unsigned int, long unsigned int>, 1024> >; size_t = long unsigned int]’: Measure.cpp:87:18: required from here Measure.cpp:92:57: error: dependent-name ‘Container::value_type’ is parsed as a non-type, but instantiation yields a type 92 | this->container.insert(Container::value_type(size, size)); | ~~~~~^~~~ Measure.cpp:92:57: note: say ‘typename Container::value_type’ if a type is meant Measure.cpp: In instantiation of ‘void MapTest::testIteration(size_t) [with Container = std::map<long unsigned int, long unsigned int>; size_t = long unsigned int]’: Measure.cpp:87:18: required from here Measure.cpp:92:57: error: dependent-name ‘Container::value_type’ is parsed as a non-type, but instantiation yields a type Measure.cpp:92:57: note: say ‘typename Container::value_type’ if a type is meant Makefile:2: recipe for target 'default,' failed make: *** [default,] Error 1