浏览代码

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;
 }