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

Template instatiation error on compiling #1203

Closed
Fulgen301 opened this issue Aug 20, 2018 · 2 comments
Closed

Template instatiation error on compiling #1203

Fulgen301 opened this issue Aug 20, 2018 · 2 comments
Labels
state: needs more info the author of the issue needs to provide more details

Comments

@Fulgen301
Copy link

Fulgen301 commented Aug 20, 2018

  • What is the issue you have?
    I use the json.hpp single-include in a project, but when the compiler tries to compile the file which includes json.hpp, this error occurs:
    https://bpaste.net/show/e5f311ab72ef
  • Please describe the steps to reproduce the issue. Can you provide a small but working code example?
    I'm not exactly sure what to fill in here, as the unit tests and examples from the documentation all compile and run without issues and as it's a larger project.
  • What is the expected behavior?
    It should compile without errors.
  • And what is the actual behavior instead?
    Compiling fails.
  • Which compiler and operating system are you using? Is it a supported compiler?
    gcc 8.2.0, Arch Linux (unsupported)
  • Did you use a released version of the library or the version from the develop branch?
    I use today's release.
  • If you experience a compilation error: can you compile and run the unit tests?
    The unit tests all passed.
@theodelrieu
Copy link
Contributor

Could you post the calling code?

It seems there is a problem with some emplace_back call.

@nlohmann nlohmann added the state: needs more info the author of the issue needs to provide more details label Aug 24, 2018
@Fulgen301
Copy link
Author

Fulgen301 commented Sep 1, 2018

My bad, was a problem with an overseen emplace_back call in my code, no problem with the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: needs more info the author of the issue needs to provide more details
Projects
None yet
Development

No branches or pull requests

3 participants