mirror of
https://github.com/g-truc/glm.git
synced 2024-11-24 01:24:34 +00:00
added: 'operator<<(std::pair<tmat4x4<T,P>, tmat4x4<T,P>>)' routed to 'operator<<(std::pair<tmat4x4<T,P> const, tmat4x4<T,P> const>)' to avoid specifier removal by 'std::make_pair<>' and follow-up type-deduction problems; see [http://stackoverflow.com/questions/29985791/]
This commit is contained in:
parent
a472f50767
commit
e590111375
@ -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
|
||||||
|
|
||||||
|
@ -645,4 +645,13 @@ 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
|
||||||
|
Loading…
Reference in New Issue
Block a user