Skip to content

Commit

Permalink
Fixed specifier removal by 'std::make_pair<>' #333
Browse files Browse the repository at this point in the history
  • Loading branch information
Groovounet committed May 1, 2015
1 parent 5f784d8 commit df8cd22
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions glm/gtx/io.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,12 @@ namespace glm
std::pair<tmat4x4<T,P> 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

Expand Down
8 changes: 8 additions & 0 deletions glm/gtx/io.inl
Original file line number Diff line number Diff line change
Expand Up @@ -645,4 +645,12 @@ namespace io

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
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ glm::mat4 camera(float Translate, glm::vec2 const & Rotate)
##### Fixes:
- Fixed (u)int64 MSB/LSB handling on BE archs #306
- Fixed multi-line comment warning in g++. #315
- Fixed specifier removal by 'std::make_pair<>' #333
##### Deprecation:
- Removed integer specification for 'mod' in GTC_integer #308
Expand Down

0 comments on commit df8cd22

Please # to comment.