[ox/std] Make make_unique not noexcept
This commit is contained in:
parent
9c63f26684
commit
8887daf7e4
2
deps/ox/src/ox/std/memory.hpp
vendored
2
deps/ox/src/ox/std/memory.hpp
vendored
@ -104,7 +104,7 @@ constexpr bool operator!=(std::nullptr_t, const UniquePtr<T> p2) noexcept {
|
|||||||
|
|
||||||
template<typename T, typename ...Args>
|
template<typename T, typename ...Args>
|
||||||
[[nodiscard]]
|
[[nodiscard]]
|
||||||
constexpr auto make_unique(Args&&... args) noexcept {
|
constexpr auto make_unique(Args&&... args) {
|
||||||
return UniquePtr(new T(args...));
|
return UniquePtr(new T(args...));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user