diff --git a/include/rfl/Result.hpp b/include/rfl/Result.hpp index 12a8b689..6086cfb1 100644 --- a/include/rfl/Result.hpp +++ b/include/rfl/Result.hpp @@ -454,7 +454,7 @@ class std::bad_expected_access : public bad_expected_access { template [[nodiscard]] - auto error(this Self&& self) noexcept { + auto error(Self&& self) noexcept { return std::forward(self).err_; }