| commit | 7082067186909fa4bbece010dafbb25a0b9f7e44 | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Mon Dec 07 11:15:14 2020 -0800 |
| committer | David Tolnay <dtolnay@gmail.com> | Mon Dec 07 11:16:15 2020 -0800 |
| tree | 5544e8f145120a658136a90349c789d7ef8fd66c | |
| parent | 56f78f34339a64e57b67689d73013dedd2867464 [diff] [blame] |
Include <memory> for CxxVector's unique_ptr shims Fixes #548.
diff --git a/gen/src/write.rs b/gen/src/write.rs index 419e46c..fb1a7f3 100644 --- a/gen/src/write.rs +++ b/gen/src/write.rs
@@ -1671,6 +1671,7 @@ writeln!(out, " return &s[pos];"); writeln!(out, "}}"); + out.include.memory = true; write_unique_ptr_common(out, UniquePtr::CxxVector(element)); writeln!(out, "#endif // CXXBRIDGE1_VECTOR_{}", instance);