Skip to content

Commit

Permalink
Merge pull request #42 from artemyarulin/fix-compilation
Browse files Browse the repository at this point in the history
Fix RustStream constructor arguments ordering in templates/rust_buf_stream
  • Loading branch information
Lipt0nas authored Aug 9, 2024
2 parents 33eb12b + 48ad345 commit 1525db3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindgen/src/bindings/cpp/templates/rust_buf_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct RustStreamBuffer: std::basic_streambuf<char> {

struct RustStream: std::basic_iostream<char> {
RustStream(RustBuffer *buf):
streambuf(RustStreamBuffer(buf)), std::basic_iostream<char>(&streambuf) { }
std::basic_iostream<char>(&streambuf), streambuf(RustStreamBuffer(buf)) { }

template <typename T, typename = std::enable_if_t<std::is_arithmetic_v<T>>>
RustStream &operator>>(T &val) {
Expand Down

0 comments on commit 1525db3

Please sign in to comment.