diff options
| author | Enrico Borba <enricozb@users.noreply.github.com> | 2024-12-23 09:23:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-23 09:23:58 +0100 |
| commit | 52125e6336d596aebdd4da91080b3178ddca7449 (patch) | |
| tree | 27d3e5c01660d567f22fee621c97753f294256b0 /src/ref_ptr.hh | |
| parent | 14cb35f62b36b2f1aa530adb5e31c05ff1347bfc (diff) | |
| parent | 9c458c50661446fc6e7295787b06422137af099d (diff) | |
Merge branch 'master' into enricozb/daemon-stdin
Diffstat (limited to 'src/ref_ptr.hh')
| -rw-r--r-- | src/ref_ptr.hh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ref_ptr.hh b/src/ref_ptr.hh index 4b576039..fcbd6a71 100644 --- a/src/ref_ptr.hh +++ b/src/ref_ptr.hh @@ -1,8 +1,6 @@ #ifndef ref_ptr_hh_INCLUDED #define ref_ptr_hh_INCLUDED -#include <utility> - namespace Kakoune { @@ -34,7 +32,7 @@ struct RefPtr ~RefPtr() noexcept { release(); } RefPtr(const RefPtr& other) : m_ptr(other.m_ptr) { acquire(); } RefPtr(RefPtr&& other) - noexcept(noexcept(std::declval<RefPtr>().moved(nullptr))) + noexcept(noexcept(moved(nullptr))) : m_ptr(other.m_ptr) { other.m_ptr = nullptr; moved(&other); } RefPtr& operator=(const RefPtr& other) |
