diff options
Diffstat (limited to 'src/common/swap.h')
| -rw-r--r-- | src/common/swap.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/swap.h b/src/common/swap.h index 1794144fb..72c50d789 100644 --- a/src/common/swap.h +++ b/src/common/swap.h | |||
| @@ -168,8 +168,7 @@ public: | |||
| 168 | return swap(value); | 168 | return swap(value); |
| 169 | } | 169 | } |
| 170 | swap_struct_t() = default; | 170 | swap_struct_t() = default; |
| 171 | swap_struct_t(const T& v) : value(swap(v)) { | 171 | swap_struct_t(const T& v) : value(swap(v)) {} |
| 172 | } | ||
| 173 | 172 | ||
| 174 | template <typename S> | 173 | template <typename S> |
| 175 | swapped_t& operator=(const S& source) { | 174 | swapped_t& operator=(const S& source) { |