xo-alloc / xo-refcnt: feature flags for easy tests.
This commit is contained in:
parent
de3b27629d
commit
cfca87ee44
2 changed files with 10 additions and 0 deletions
|
|
@ -80,6 +80,11 @@ namespace xo {
|
|||
x.ptr_ = nullptr;
|
||||
}
|
||||
|
||||
/** convenience tests for static_assert() **/
|
||||
static constexpr bool is_rc_ptr = true;
|
||||
/** see also: xo/alloc/Object.hpp **/
|
||||
static constexpr bool is_gc_ptr = false;
|
||||
|
||||
/* aliasing ctor. see ctor (8) here:
|
||||
* [[https://en.cppreference.com/w/cpp/memory/shared_ptr/shared_ptr]]
|
||||
* and this dicsussion:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue