summaryrefslogtreecommitdiff
path: root/src/ref_ptr.hh
diff options
context:
space:
mode:
authorEnrico Borba <enricozb@users.noreply.github.com>2024-12-23 09:23:58 +0100
committerGitHub <noreply@github.com>2024-12-23 09:23:58 +0100
commit52125e6336d596aebdd4da91080b3178ddca7449 (patch)
tree27d3e5c01660d567f22fee621c97753f294256b0 /src/ref_ptr.hh
parent14cb35f62b36b2f1aa530adb5e31c05ff1347bfc (diff)
parent9c458c50661446fc6e7295787b06422137af099d (diff)
Merge branch 'master' into enricozb/daemon-stdin
Diffstat (limited to 'src/ref_ptr.hh')
-rw-r--r--src/ref_ptr.hh4
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)