diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2020-06-25 17:25:31 -0400 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2020-06-29 15:15:34 -0400 |
commit | 1d58cc7cb040a70f768b632f294db4e0797d3a34 (patch) | |
tree | 1bd97392c39ccfffa509613f6b133b9df58b0dce /src/attributes.h | |
parent | 62733fee874bfe7e833e71380eb8efd6a3126fbd (diff) | |
download | bitcoin-1d58cc7cb040a70f768b632f294db4e0797d3a34.tar.xz |
span: add lifetimebound attribute
See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0936r0.pdf for
reference.
This helps to guard against dangling references caused by construction from
temporaries such as:
Span<const int> sp(std::vector<int>{1,2,3});
Diffstat (limited to 'src/attributes.h')
0 files changed, 0 insertions, 0 deletions