ソースを参照

Fixed specifier removal by 'std::make_pair<>' #333

Christophe Riccio 10 年 前
コミット
df8cd22706
3 ファイル変更15 行追加0 行削除
  1. 6 0
      glm/gtx/io.hpp
  2. 8 0
      glm/gtx/io.inl
  3. 1 0
      readme.md

+ 6 - 0
glm/gtx/io.hpp

@@ -220,6 +220,12 @@ namespace glm
 		std::pair<tmat4x4<T,P> const,
 		std::pair<tmat4x4<T,P> const,
 		tmat4x4<T,P> const> const &);
 		tmat4x4<T,P> const> const &);
 
 
+	template <typename CTy, typename CTr, typename T, precision P>
+	GLM_FUNC_DECL std::basic_ostream<CTy,CTr> & operator<<(
+		std::basic_ostream<CTy,CTr> &,
+		std::pair<tmat4x4<T,P>,
+		tmat4x4<T,P>> const &);
+
 	/// @}
 	/// @}
 }//namespace glm
 }//namespace glm
 
 

+ 8 - 0
glm/gtx/io.inl

@@ -645,4 +645,12 @@ namespace io
 
 
 		return os;
 		return os;
 	}
 	}
+
+	template <typename CTy, typename CTr, typename T, precision P>
+	GLM_FUNC_QUALIFIER std::basic_ostream<CTy,CTr>& operator<<(
+		std::basic_ostream<CTy,CTr> & os,
+		std::pair<tmat4x4<T,P>, tmat4x4<T,P>> const& a)
+	{
+		return operator<<(os, static_cast<std::pair<tmat4x4<T,P> const, tmat4x4<T,P> const> const&>(a));
+	}
 }//namespace glm
 }//namespace glm

+ 1 - 0
readme.md

@@ -63,6 +63,7 @@ glm::mat4 camera(float Translate, glm::vec2 const & Rotate)
 ##### Fixes:
 ##### Fixes:
 - Fixed (u)int64 MSB/LSB handling on BE archs #306
 - Fixed (u)int64 MSB/LSB handling on BE archs #306
 - Fixed multi-line comment warning in g++. #315
 - Fixed multi-line comment warning in g++. #315
+- Fixed specifier removal by 'std::make_pair<>' #333
 
 
 ##### Deprecation:
 ##### Deprecation:
 - Removed integer specification for 'mod' in GTC_integer #308
 - Removed integer specification for 'mod' in GTC_integer #308