diff options
author | Chris Robinson <[email protected]> | 2020-01-06 01:40:21 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-01-06 01:40:21 -0800 |
commit | 819763a6c20cebf8aa7e64421182d3f19269ff13 (patch) | |
tree | 241570bd6459c9e176c7e45338c6131ccd9b2fd5 /common/almalloc.h | |
parent | e9ee6dd2396ad48f441878aeeaa4553eed44ce06 (diff) |
Fix some 'ambiguous' calls for newer MSVC
Diffstat (limited to 'common/almalloc.h')
-rw-r--r-- | common/almalloc.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/common/almalloc.h b/common/almalloc.h index ed6756f3..1a1e2557 100644 --- a/common/almalloc.h +++ b/common/almalloc.h @@ -146,7 +146,7 @@ inline void uninitialized_default_construct(T first, const T last) } } catch(...) { - destroy(first, current); + al::destroy(first, current); throw; } } @@ -165,7 +165,7 @@ inline T uninitialized_default_construct_n(T first, N count) } while(--count); } catch(...) { - destroy(first, current); + al::destroy(first, current); throw; } } @@ -187,7 +187,7 @@ inline T1 uninitialized_move(T0 first, const T0 last, const T1 output) } } catch(...) { - destroy(output, current); + al::destroy(output, current); throw; } return current; @@ -208,7 +208,7 @@ inline T1 uninitialized_move_n(T0 first, N count, const T1 output) } while(--count); } catch(...) { - destroy(output, current); + al::destroy(output, current); throw; } } @@ -265,8 +265,8 @@ DIAGNOSTIC_POP } FlexArray(index_type size) : mSize{size} - { if(mSize > 0) uninitialized_default_construct_n(std::addressof(mArray[0]), mSize); } - ~FlexArray() { if(mSize > 0) destroy_n(std::addressof(mArray[0]), mSize); } + { al::uninitialized_default_construct_n(mArray, mSize); } + ~FlexArray() { al::destroy_n(mArray, mSize); } FlexArray(const FlexArray&) = delete; FlexArray& operator=(const FlexArray&) = delete; |