فهرست منبع

Add inline to template specializations

Michael Ragazzon 6 سال پیش
والد
کامیت
a0772ccbd2
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      Include/Rocket/Core/Vector2.inl

+ 2 - 2
Include/Rocket/Core/Vector2.inl

@@ -74,7 +74,7 @@ Vector2< Type > Vector2< Type >::Normalise() const
 
 // Generates a rounded vector from this vector.
 template < >
-Vector2< float > Vector2< float >::Round() const
+inline Vector2< float > Vector2< float >::Round() const
 {
 	Vector2 < float > result;
 	result.x = std::roundf(x);
@@ -84,7 +84,7 @@ Vector2< float > Vector2< float >::Round() const
 
 // Generates a rounded vector from this vector.
 template < >
-Vector2< int > Vector2< int >::Round() const
+inline Vector2< int > Vector2< int >::Round() const
 {
 	return *this;
 }