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

Lib not working on ubuntu 16.04 #905

Closed
rahulm-gdb opened this issue Jan 8, 2018 · 1 comment
Closed

Lib not working on ubuntu 16.04 #905

rahulm-gdb opened this issue Jan 8, 2018 · 1 comment
Labels
state: needs more info the author of the issue needs to provide more details

Comments

@rahulm-gdb
Copy link

Bug Report

  • What is the issue you have?
    Cloned the repo and tried using json.hpp in my .cpp file.
    Also tried disable debug assertions. with #define NDEBUG

  • Please describe the steps to reproduce the issue. Can you provide a small but working code example?

  • What is the expected behavior?
    Should compile and run normally.

  • And what is the actual behavior instead?
    Compile time error.error:
    static assertion failed: could not find to_json() method in T's namespace
    static_assert(sizeof(BasicJsonType) == 0

  • Which compiler and operating system are you using? Is it a supported compiler?

  • Did you use a released version of the library or the version from the develop branch?
    tried using both release as well as develop branch.

  • If you experience a compilation error: can you compile and run the unit tests? yes

Feature Request

  • Describe the feature in as much detail as possible.

  • Include sample usage where appropriate.

@nlohmann
Copy link
Owner

nlohmann commented Jan 8, 2018

The compilation error indicates that you try to convert a type to json where the conversation could not be deduced by the library, for instance myClass foo; json = foo;. Without a more detailed error message and example code, I cannot analyze the issue.

@nlohmann nlohmann added the state: needs more info the author of the issue needs to provide more details label Jan 8, 2018
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

2 participants