diff --git a/bindgen/src/bindings/cpp/templates/rust_buf_stream.cpp b/bindgen/src/bindings/cpp/templates/rust_buf_stream.cpp index 2538b7e..194c5d7 100644 --- a/bindgen/src/bindings/cpp/templates/rust_buf_stream.cpp +++ b/bindgen/src/bindings/cpp/templates/rust_buf_stream.cpp @@ -17,7 +17,7 @@ struct RustStreamBuffer: std::basic_streambuf { struct RustStream: std::basic_iostream { RustStream(RustBuffer *buf): - streambuf(RustStreamBuffer(buf)), std::basic_iostream(&streambuf) { } + std::basic_iostream(&streambuf), streambuf(RustStreamBuffer(buf)) { } template >> RustStream &operator>>(T &val) {