Squashed 'deps/nostalgia/' changes from 7c824e91..89fab5cc
89fab5cc [ox/fs] Remove stdc++fs from library list on Linux 1c06ea67 [nostalgia] Add links to Tonc and GBATEK to developer-handbook 6b948ee0 Merge commit '932c3e57e93d63dc98c454015afea941416ff423' 72dddcae [ox] Fix TypeDescWriter segfault git-subtree-dir: deps/nostalgia git-subtree-split: 89fab5cc208729a9ef6564d6b4172a0c9e0cd3bb
This commit is contained in:
2
deps/ox/src/ox/std/memory.hpp
vendored
2
deps/ox/src/ox/std/memory.hpp
vendored
@@ -74,6 +74,7 @@ class SharedPtr {
|
||||
int *m_refCnt = nullptr;
|
||||
|
||||
public:
|
||||
using value_type = T;
|
||||
explicit constexpr SharedPtr(T *t = nullptr) noexcept: m_t(t), m_refCnt(new int) {
|
||||
}
|
||||
|
||||
@@ -183,6 +184,7 @@ class UniquePtr {
|
||||
T *m_t = nullptr;
|
||||
|
||||
public:
|
||||
using value_type = T;
|
||||
explicit constexpr UniquePtr(T *t = nullptr) noexcept: m_t(t) {
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user