From bba2df336f9984799ed4c1735ed7fb72dcf571fe Mon Sep 17 00:00:00 2001 From: Simon Brand Date: Thu, 9 May 2019 09:48:21 +0100 Subject: [PATCH] Make trivially copyable Fixes #8 --- function_ref.hpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/function_ref.hpp b/function_ref.hpp index 36d2a55..5f61837 100644 --- a/function_ref.hpp +++ b/function_ref.hpp @@ -15,7 +15,7 @@ #define TL_FUNCTION_REF_HPP #define TL_FUNCTION_REF_VERSION_MAJOR 0 -#define TL_FUNCTION_REF_VERSION_MINOR 2 +#define TL_FUNCTION_REF_VERSION_MINOR 3 #if (defined(_MSC_VER) && _MSC_VER == 1900) /// \exclude @@ -161,11 +161,7 @@ template class function_ref { /// Makes `*this` refer to the same callable as `rhs`. TL_FUNCTION_REF_11_CONSTEXPR function_ref & - operator=(const function_ref &rhs) noexcept { - obj_ = rhs.obj_; - callback_ = rhs.callback_; - return *this; - } + operator=(const function_ref &rhs) noexcept = default; /// Makes `*this` refer to `f`. ///