boostorg / property_tree

Boost.org property_tree module
http://boost.org/libs/property_tree
55 stars 92 forks source link

property_tree/detail/file_parser_error.hpp does not #include <sstream> #99

Closed urnathan closed 9 months ago

urnathan commented 2 years ago

This was discovered when enabling clang implicit modules (and by implication will affect C++20 header-units). property_tree/detail/file_parser_error.hpp uses stringstream without #including , and therefore is not self contained. Fixed thusly:

--- c/1.77.0/src/boost_1_77_0/boost/property_tree/detail/file_parser_error.hpp
+++ w/1.77.0/src/boost_1_77_0/boost/property_tree/detail/file_parser_error.hpp
@@ -12,6 +12,7 @@

 #include <boost/property_tree/ptree.hpp>
 #include <string>
+#include <sstream>

 namespace boost { namespace property_tree
 {
madmongo1 commented 2 years ago

Thank you.

ashtum commented 9 months ago

Addressed in https://github.com/boostorg/property_tree/pull/112.