-
Notifications
You must be signed in to change notification settings - Fork 2.7k
0.y.z build fails with gcc 6.3 #600
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
Comments
Old version? We do not use scoped_ptr: 57 #if __cplusplus >= 201103L || (defined(_CPPLIB_VER) && _CPPLIB_VER >= 520)
58 typedef std::unique_ptr<CharReader> CharReaderPtr;
59 #else
60 typedef std::auto_ptr<CharReader> CharReaderPtr;
61 #endif |
@cdunn2001 perhaps I am doing something wrong. What I did is I generated amalgamated header from the current 0.y.z branch, and the resulting |
Well, yes, there was
|
Hmm. Maybe gcc 6.3 dropped If you cannot find a work-around, the best solution is to switch to the |
We intentionally used |
That's the difficulty of upgrading some things but not others. However, if the only problem is |
With gcc 6 I successfully built recent master using |
Yes, but that's the ... Oh, I see. You're saying they could use |
I do not find anything about scoped_ptr ever being part of the STL. It is part of boost but I don't believe Checking the GCC version would be wrong anyway as it does not guarantee the program is compiled with the latest C++ version / ABI. |
Can you rollback this commit ? |
I just realized the master version does not match the last release of the 0.x.y (0.10.6) which is using scoped_ptr. The tip of x.y.z is currently using std::unique_ptr<> with the macro JSON_HAS_UNIQUE_PTR which is never define. Can you create a new release to avoid further confusion? |
A new release? We'll do that soon. But is We try not to touch the |
As stated in #828 0.x.y branch looks fine. A new release should fix this issue. |
A new "0.y.z" release, based on the tip of the |
Great for the new update here: I can even compile the project with gcc 8.2 now. |
Errors:
The text was updated successfully, but these errors were encountered: