[*] Amend 11bb77f1
, fully disable bCache flag for packed shared pointers
This commit is contained in:
parent
5c1f608cf2
commit
718080245c
@ -90,7 +90,8 @@
|
||||
#define _AURORA_AVOID_EXTREMLY_DUMB_STL_TYPES
|
||||
// TODO:
|
||||
#if !defined(_AURORA_NULLEXPT_BRANCH)
|
||||
//#define _AURORA_NULLEXPT_BRANCH
|
||||
#define _AURORA_NULLEXPT_BRANCH
|
||||
#define _AURORA_NULLEXPT_BRANCH_NO_BAD_SHARED_STRUCT
|
||||
#endif
|
||||
|
||||
#if !defined(AURORA_ROXTL_HAS_RUNTIME)
|
||||
|
@ -372,6 +372,18 @@ namespace Aurora::Memory
|
||||
ptr = &_detail::gNoop;
|
||||
}
|
||||
}
|
||||
#elif defined(_AURORA_NULLEXPT_BRANCH_NO_BAD_SHARED_STRUCT)
|
||||
auline void throwif() const
|
||||
{
|
||||
if (!Base_t::operator bool()) [[likely]]
|
||||
{
|
||||
AU_THROW_STRING("ExSharedPointer Null Access Violation");
|
||||
}
|
||||
}
|
||||
|
||||
auline void _cache()
|
||||
{
|
||||
}
|
||||
#else
|
||||
bool cached {};
|
||||
auline void throwif() const
|
||||
|
Loading…
Reference in New Issue
Block a user