If generating output string stream operator for a class, add the dependency includes <ostream> and <sstream> to the module

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2008-09-03 11:59:10 +01:00
1 parent a05fcef850
commit 30bfe7c371
1 file changed
+2
+2
View File
@@ -1164,6 +1164,8 @@ public:
to a string.
"""
self.has_output_stream_operator = True
self.module.add_include("<ostream>")
self.module.add_include("<sstream>")
def add_constructor(self, *args, **kwargs):
"""