From eab517912c546d7d3c91b0c395194818787c518d Mon Sep 17 00:00:00 2001 From: Mxr Date: Mon, 5 Feb 2024 05:24:55 +0800 Subject: [PATCH] Further fix --- src/VkBootstrap.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/VkBootstrap.h b/src/VkBootstrap.h index a609e13..58c1f83 100644 --- a/src/VkBootstrap.h +++ b/src/VkBootstrap.h @@ -126,10 +126,9 @@ template class Result { T* operator-> () noexcept { assert (m_init); return &m_value; } const T& operator* () const& noexcept { assert (m_init); return m_value; } T& operator* () & noexcept { assert (m_init); return m_value; } - T&& operator* () && noexcept { assert (m_init); return std::move (m_value); } + T operator* () && noexcept { assert (m_init); return std::move (m_value); } const T& value () const& noexcept { assert (m_init); return m_value; } T& value () & noexcept { assert (m_init); return m_value; } - const T&& value () const&& noexcept { assert (m_init); return std::move (m_value); } T value () && noexcept { assert (m_init); return std::move (m_value); } // std::error_code associated with the error