matrix: move sfinae condition into template param list

This commit is contained in:
Danny Robson 2018-04-16 15:52:34 +10:00
parent c4eec456a0
commit 3bd795f5e3

View File

@ -165,8 +165,11 @@ namespace util {
} }
template <typename VectorT> template <
std::enable_if_t<is_coord_v<VectorT>, VectorT> typename VectorT,
typename = std::enable_if_t<is_coord_v<VectorT>>
>
auto
operator* (const VectorT &rhs) const operator* (const VectorT &rhs) const
{ {
VectorT out; VectorT out;