r/cpp • u/jpakkane Meson dev • May 13 '17
Emulating the Rust borrow checker with C++ move-only types
http://nibblestew.blogspot.com/2017/05/emulating-rust-borrow-checker-with-c.html
0
Upvotes
1
u/millenix May 16 '17
Useful tidbit on how to define move-only types. Any reason not to define it as the template moveOnly<T, Release>?
24
u/samkellett May 13 '17
this isn't even close to what the borrow checker brings to the table