Use modern construct 'using' instead of typedef.
[platform/core/uifw/dali-core.git] / dali / public-api / math / vector2.h
index c8df6dd..7921719 100644 (file)
@@ -68,7 +68,7 @@ public:
    * @param[in] x x or width component
    * @param[in] y y or height component
    */
-  explicit Vector2(float x, float y)
+  explicit constexpr Vector2(float x, float y)
   : x(x), y(y)
   {
   }
@@ -447,6 +447,13 @@ public:
    */
   float* AsFloat() {return &x;}
 
+public:
+
+  Vector2( const Vector2& ) = default; ///< Default copy constructor
+  Vector2( Vector2&& ) = default; ///< Default move constructor
+  Vector2& operator=( const Vector2& ) = default; ///< Default copy assignment operator
+  Vector2& operator=( Vector2&& ) = default; ///< Default move assignment operator
+
 public: // Data
 
   // NOTE
@@ -471,7 +478,7 @@ public: // Data
  * @brief Size is an alias of Dali::Vector2.
  * @SINCE_1_0.0
  */
-typedef Vector2 Size;
+using Size = Vector2;
 
 /**
  * @brief Print a Vector2.