: m_Data(n, c)
{ }
- inline String(const String& other)
- : m_Data(other.m_Data)
- { }
-
- inline String(String&& other)
- : m_Data(other)
- { }
+ String(const String& other) = default;
+ String(String&& other) = default;
inline ~String(void)
{ }
: m_Data(begin, end)
{ }
- inline String& operator=(const String& rhs)
- {
- m_Data = rhs.m_Data;
- return *this;
- }
+ String& operator=(const String& rhs) = default;
+ String& operator=(String&& rhs) = default;
inline String& operator=(const std::string& rhs)
{
return stream;
}
-Value& Value::operator=(const Value& other)
-{
- m_Value = other.m_Value;
- return *this;
-}
-
bool Value::operator==(bool rhs) const
{
return *this == Value(rhs);
: m_Value(String(value))
{ }
- inline Value(const Value& other)
- : m_Value(other.m_Value)
- { }
-
- inline Value(Value&& other)
- : m_Value(other.m_Value)
- { }
+ Value(const Value& other) = default;
+ Value(Value&& other) = default;
inline Value(Object *value)
{
operator double(void) const;
operator String(void) const;
- Value& operator=(const Value& other);
+ Value& operator=(const Value& other) = default;
+ Value& operator=(Value&& other) = default;
bool operator==(bool rhs) const;
bool operator!=(bool rhs) const;