Commit 808865a7 authored by Müller, Felix's avatar Müller, Felix Committed by Praetorius, Simon

Fixed enum comparison

parent 9fd34292
......@@ -50,7 +50,7 @@ namespace MatVec {
std::enable_if_t<IsMatrix<Mat>::value && IsVector<Vec>::value, int>>
auto multiplies(Mat const& mat, Vec const& vec)
{
static_assert(Mat::cols == Vec::dimension, "");
static_assert(int(Mat::cols) == int(Vec::dimension), "");
using T = std::common_type_t<typename FieldTraits<Vec>::field_type, typename FieldTraits<Mat>::field_type>;
FieldVector<T,Mat::rows> y;
mat.mv(vec, y);
......@@ -62,7 +62,7 @@ namespace MatVec {
std::enable_if_t<IsVector<Vec>::value && IsMatrix<Mat>::value, int>>
auto multiplies(Vec const& vec, Mat const& mat)
{
static_assert(Mat::rows == Vec::dimension, "");
static_assert(int(Mat::rows) == int(Vec::dimension), "");
using T = std::common_type_t<typename FieldTraits<Vec>::field_type, typename FieldTraits<Mat>::field_type>;
FieldVector<T,Mat::cols> y;
mat.mtv(vec, y);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment