Programs can not be compiled compile with header nlohmann/json.hpp
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nlohmann-json (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Ubuntu release 18.04.1
Package version 2.1.1-1.1
Bug is reported already reported and resolved in upstream.
Compiling error from upstream issue about Ubuntu[0]:
In file included from test_json.cpp:6:0:
/usr/include/
/usr/include/
In file included from /usr/include/
/usr/include/
struct array
^~~~~
Upstream issue discussing this bug - [1]
Proposed solution[2]:
> Changing the line in json.hpp to read
> return (*lhs.m_
> seems to fix the error using that simple test case.
Bug was fixed in [3]. Versions >=3.0.0 has this fix.
[0] https:/
[1] https:/
[2] https:/
[3] https:/