Skip to content

Commit dc58185

Browse files
fix enable if on matrix.hxx
i forgot that std type traits cpp for enable if is different than my old custom traits is_type_t which is equivalence to conditional_if_t on std type traits
1 parent 49543b1 commit dc58185

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linear/include/matrix.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
namespace l3d {
3232

3333
// example usage Mat<double,4> Matrix 4 * 4 with double element type
34-
template <typename T, int N, typename = std::enable_if_t<std::is_floating_point_v<T>, float>>
34+
template <typename T, int N, typename = std::enable_if_t<std::is_floating_point_v<T>, T>>
3535
class Mat {
3636
private:
3737
T vals[N * N];

0 commit comments

Comments
 (0)