-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visual Studio 2017 and ordered-map #12
Comments
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! Thank you for your numerous contributions, @Tessil !!
I know you are familiarized with nlohmann/json and Tessil/ordered-map interaction:
#9
nlohmann/json#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
The text was updated successfully, but these errors were encountered: