This is an automated email from the ASF dual-hosted git repository.
fokko pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/main by this push:
new c53857b8c9 [C++] fix STL header includes for NodeImpl.cc and Stream.cc
(#3471)
c53857b8c9 is described below
commit c53857b8c9694c2f9b8cb071dd2ef617d5cda8b7
Author: Stephan Lachnit <[email protected]>
AuthorDate: Wed Sep 3 09:24:25 2025 +0200
[C++] fix STL header includes for NodeImpl.cc and Stream.cc (#3471)
MSVC complains about missing symbols:
```
lang/c++/impl/Stream.cc(183): error C2039: 'back_inserter': is not a member
of 'std'
lang/c++/impl/Stream.cc(183): error C3861: 'back_inserter': identifier not
found
```
Signed-off-by: Stephan Lachnit <[email protected]>
---
lang/c++/impl/NodeImpl.cc | 7 ++++++-
lang/c++/impl/Stream.cc | 4 ++++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/lang/c++/impl/NodeImpl.cc b/lang/c++/impl/NodeImpl.cc
index 8434c24ccb..e68eb365e2 100644
--- a/lang/c++/impl/NodeImpl.cc
+++ b/lang/c++/impl/NodeImpl.cc
@@ -17,8 +17,13 @@
*/
#include "NodeImpl.hh"
-#include <sstream>
+
+#include <cctype>
+#include <locale>
+#include <ostream>
+#include <string>
#include <utility>
+#include <vector>
using std::string;
namespace avro {
diff --git a/lang/c++/impl/Stream.cc b/lang/c++/impl/Stream.cc
index 738b1e4052..1ca5c34646 100644
--- a/lang/c++/impl/Stream.cc
+++ b/lang/c++/impl/Stream.cc
@@ -17,6 +17,10 @@
*/
#include "Stream.hh"
+
+#include <algorithm>
+#include <iterator>
+#include <memory>
#include <vector>
namespace avro {