cpp: update includes
* add missing include of "sstream" (seen when building with msvc)
* remove deprecated boost header
While compiling ThrifttReadCheckTests.cpp I found this warning:
/usr/include/boost/test/auto_unit_test.hpp:17:1: note: ‘#pragma message: This header is deprecated. Use <boost/test/unit_test.hpp> instead.’
17 | BOOST_HEADER_DEPRECATED( "<boost/test/unit_test.hpp>" )
| ^~~~~~~~~~~~~~~~~~~~~~~
As this goes back to boost v1.34.0 (released in May 2007) we can switch the headerfile, without risking build errors.
diff --git a/lib/cpp/src/thrift/TUuid.h b/lib/cpp/src/thrift/TUuid.h
index bcf0160..aa69c67 100644
--- a/lib/cpp/src/thrift/TUuid.h
+++ b/lib/cpp/src/thrift/TUuid.h
@@ -27,6 +27,7 @@
#endif // THRIFT_TUUID_SUPPORT_BOOST_UUID
#include <algorithm>
+#include <sstream>
namespace apache {
namespace thrift {
diff --git a/lib/cpp/test/ThrifttReadCheckTests.cpp b/lib/cpp/test/ThrifttReadCheckTests.cpp
index 481185e..7aab09f 100644
--- a/lib/cpp/test/ThrifttReadCheckTests.cpp
+++ b/lib/cpp/test/ThrifttReadCheckTests.cpp
@@ -19,7 +19,6 @@
#define MAX_MESSAGE_SIZE 2
-#include <boost/test/auto_unit_test.hpp>
#include <boost/test/unit_test.hpp>
#include <iostream>
#include <climits>