Skip to content

Commit 9639a37

Browse files
committed
Merge branch 'master' of github.com:TartanLlama/function_ref
2 parents 3cdadfa + bba2df3 commit 9639a37

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

function_ref.hpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#define TL_FUNCTION_REF_HPP
1616

1717
#define TL_FUNCTION_REF_VERSION_MAJOR 0
18-
#define TL_FUNCTION_REF_VERSION_MINOR 2
18+
#define TL_FUNCTION_REF_VERSION_MINOR 3
1919

2020
#if (defined(_MSC_VER) && _MSC_VER == 1900)
2121
/// \exclude
@@ -161,11 +161,7 @@ template <class R, class... Args> class function_ref<R(Args...)> {
161161

162162
/// Makes `*this` refer to the same callable as `rhs`.
163163
TL_FUNCTION_REF_11_CONSTEXPR function_ref<R(Args...)> &
164-
operator=(const function_ref<R(Args...)> &rhs) noexcept {
165-
obj_ = rhs.obj_;
166-
callback_ = rhs.callback_;
167-
return *this;
168-
}
164+
operator=(const function_ref<R(Args...)> &rhs) noexcept = default;
169165

170166
/// Makes `*this` refer to `f`.
171167
///

0 commit comments

Comments
 (0)