|
|
@@ -253,9 +253,8 @@ public:
|
|
|
* @param value An instance of an object to use to initialize the wrapper.
|
|
|
* @return This any object.
|
|
|
*/
|
|
|
- template<typename Type>
|
|
|
- std::enable_if_t<!std::is_same_v<std::decay_t<Type>, basic_any>, basic_any &>
|
|
|
- operator=(Type &&value) {
|
|
|
+ template<typename Type, typename = std::enable_if_t<!std::is_same_v<std::decay_t<Type>, basic_any>>>
|
|
|
+ basic_any &operator=(Type &&value) {
|
|
|
emplace<std::decay_t<Type>>(std::forward<Type>(value));
|
|
|
return *this;
|
|
|
}
|