-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Replace use of standard IO from error handling #3239
Comments
(Removed the bug label) The code parts you mentioned are just to create an exception message. We used |
Thanks for your fast response! Aren't you already using fmt? The problem is that we can't use IO streams in our code base (as we use your library in Intel SGX) |
A while ago you helped me add the define Oh and I checked. You are not using fmt. Sorry. -> I will edit the title of the issue |
Ah, now I understand. That's indeed a limitation. Maybe you can check what fmt is doing under the hood - I guess some printf magic. |
I implemented a short version of their conversion. |
Awesome! I will have a look tonight. Is there a way I add the compiler you use in our CI? Then I would have caught these error myself. |
That is very nice of you! As Intel provides their own SGX version of the whole standard library I would not recommend to add this to your ci, I think this would not pay off. I always check in on your new releases and try to use it in our Codebase. If I encounter some problems I will report it. |
I fixed the issue in #3244. Let me know if this works. |
Wow! Thanks! I will check it out :) |
It works! Thank you! |
In
https://github.com/nlohmann/json/blame/develop/include/nlohmann/detail/output/serializer.hpp#L598-L599
and
https://github.com/nlohmann/json/blame/develop/include/nlohmann/detail/output/serializer.hpp#L504-L505
std::stringstream is used.
Use fmt instead. Instead of:
use:
The text was updated successfully, but these errors were encountered: