[ox/std] Fix Mac build
This commit is contained in:
parent
643f95ec80
commit
a3e5f27ab8
4
deps/ox/src/ox/std/anyptr.hpp
vendored
4
deps/ox/src/ox/std/anyptr.hpp
vendored
@ -58,9 +58,9 @@ class AnyPtrT {
|
||||
template<typename T>
|
||||
constexpr AnyPtrT(T *ptr) noexcept {
|
||||
if (std::is_constant_evaluated()) {
|
||||
m_wrapPtr = new Wrap(ptr);
|
||||
m_wrapPtr = new Wrap<T>(ptr);
|
||||
} else {
|
||||
m_wrapPtr = new(m_wrapData.data()) Wrap(ptr);
|
||||
m_wrapPtr = new(m_wrapData.data()) Wrap<T>(ptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user