tgockel / json-voorhees

A killer modern C++ library for interacting with JSON.
http://tgockel.github.io/json-voorhees/
Apache License 2.0
128 stars 18 forks source link

Build Error in encode.cpp in GCC >10 #170

Closed tgockel closed 2 years ago

tgockel commented 2 years ago

encode.cpp relies on <ostream> to be included, but we can only guarantee <iosfwd>, leading to compilation errors on simple lines like:

_output << '[';

This can be fixed with by adding #include <ostream>.