Tessil / ordered-map

C++ hash map and hash set which preserve the order of insertion
MIT License
512 stars 66 forks source link

Runtime error #14

Closed dendisuhubdy closed 6 years ago

dendisuhubdy commented 6 years ago
$ ./test_ordered_map
libc++abi.dylib: terminating with uncaught exception of type boost::unit_test::framework::setup_error: test unit with name 'test_insert<tsl__ordered_map<long long, long long, std____1__hash<long long>, std____1__equal_to<long long>, std____1__allocator<std____1__pair<long long, long long> >, std____1__deque<std____1__pair<long long, long long>, std____1__allocator<std____1__pair<long long, long long> > > >>' registered multiple times
[1]    48387 abort      ./test_ordered_map
Tessil commented 6 years ago

Hello,

Thank you for the report. Which compiler do you use as I can't reproduce the problem on my side (neither with GCC, Clang or MSVC)?

Nonetheless, I removed some duplicate types in test_types of tests/ordered_map_tests.cpp which could be the reason of the registered multiple times error. Could you try it with the last commit?

dendisuhubdy commented 6 years ago

I was using gcc-8.1 on a Mac OS X

Tessil commented 6 years ago

With which version of Boost?

Does the last commit resolves the problem?

dendisuhubdy commented 6 years ago

It resolved it! I'm using Boost version: 1.67.0. Thank you!