Closed DJuego closed 6 years ago
Hi, thank you for the report.
Could you try with
template<class Key, class T, class Ignore, class Allocator,
class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>,
class ValueTypeContainer = std::vector<std::pair<Key, T>>>
using ordered_map =
tsl::ordered_map<Key, T, Hash, KeyEqual,
typename std::allocator_traits<Allocator>::template rebind_alloc<std::pair<Key, T>>,
ValueTypeContainer>;
It seems to be related to Issue #2, as the json is also a recursive container in the end.
It works!! Thank you very much!
I can confirm it in Visual Studio 2017 (15.7.1) and MinGW (gcc 7.3.0) (x86_64-7.3.0-release-posix-seh-rt_v5-rev0)
DJuego
Glad it works. I updated my post in the issue of nlohmann library to reflect the valid solution.
Hi! Thank you for your numerous contributions, @Tessil !!
I know you are familiarized with nlohmann/json and Tessil/ordered-map interaction:
https://github.com/Tessil/ordered-map/issues/9 https://github.com/nlohmann/json/issues/546
I need a ordered json and i am using your way. I have test this code in MinGW gcc 7.30 and it works!
This sample is the adaptacion of nlohmann/json sample to Tessil/ordered-map, I tried to follow your instruction. Sorry for my inexperience. :-|
I get the next error in Visual Studio 2017( 15.7.1 ) (Windows 10 x64)
Could you help me? Thanks!
DJuego