mirror of
https://github.com/BlackMATov/meta.hpp.git
synced 2025-12-14 19:41:29 +07:00
fix untests
This commit is contained in:
@@ -105,14 +105,13 @@ namespace meta_hpp
|
||||
class value final {
|
||||
public:
|
||||
value() = default;
|
||||
~value() = default;
|
||||
|
||||
value(value&& other) noexcept = default;
|
||||
value(value&& other) = default;
|
||||
value(const value& other) = default;
|
||||
|
||||
value& operator=(value&& other) noexcept;
|
||||
value& operator=(const value& other);
|
||||
|
||||
~value() = default;
|
||||
value& operator=(value&& other) = default;
|
||||
value& operator=(const value& other) = default;
|
||||
|
||||
template < detail::decay_non_uvalue_kind T >
|
||||
requires detail::stdex::copy_constructible<std::decay_t<T>>
|
||||
|
||||
@@ -107,22 +107,6 @@ namespace meta_hpp
|
||||
|
||||
namespace meta_hpp
|
||||
{
|
||||
inline value& value::operator=(value&& other) noexcept {
|
||||
if ( this != &other ) {
|
||||
value temp{std::move(other)};
|
||||
swap(temp);
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline value& value::operator=(const value& other) {
|
||||
if ( this != &other ) {
|
||||
value temp{other};
|
||||
swap(temp);
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
template < detail::decay_non_uvalue_kind T >
|
||||
requires detail::stdex::copy_constructible<std::decay_t<T>>
|
||||
value::value(T&& val)
|
||||
|
||||
Reference in New Issue
Block a user