3 ms·
It's not clear how much boost.org magic they used. Failing that, a GCC extension could be needful. From the ref: --- Conclusion We attempted to represent o
by smitty1e 4y ago
It's not clear how much boost.org magic they used. Failing that, a GCC extension could be needful.
From the ref:
---
Conclusion
We attempted to represent ownership and borrowing through the C++ type system, however the language does not lend itself to this. Thus memory safety in C++ would need to be achieved through runtime checks.
Example code
#include <type_traits>
#include <utility>
#include <assert.h>
#include <stddef.h>