Skip to content
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

using unordered_map as object type #1385

Closed
eyun221 opened this issue Dec 7, 2018 · 3 comments
Closed

using unordered_map as object type #1385

eyun221 opened this issue Dec 7, 2018 · 3 comments
Labels
solution: wontfix the issue will not be fixed (either it is impossible or deemed out of scope)

Comments

@eyun221
Copy link

eyun221 commented Dec 7, 2018

following code can't not be compiled, for issue #164

using json = nlohmann::basic_json<std::unordered_map>

is there some method to use unordered_map as Object type? For its better performance.

  • Describe the feature in as much detail as possible.

  • Include sample usage where appropriate.

@nlohmann
Copy link
Owner

No, this unfortunately still does not work.

@nlohmann nlohmann added the solution: wontfix the issue will not be fixed (either it is impossible or deemed out of scope) label Dec 12, 2018
@t-b
Copy link
Contributor

t-b commented Jun 22, 2020

@nlohmann What would need to change to support std::unordered_map?

@nlohmann
Copy link
Owner

I guess the template arguments would need to be adjusted. Not sure whether it’s possible to do this that (a) both std::map and std::unordered_map work and (b) the API does not break.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solution: wontfix the issue will not be fixed (either it is impossible or deemed out of scope)
Projects
None yet
Development

No branches or pull requests

3 participants