diff --git a/mex/sources/libkorder/tl/permutation.hh b/mex/sources/libkorder/tl/permutation.hh index fb5c2d5a7..19c4a50ac 100644 --- a/mex/sources/libkorder/tl/permutation.hh +++ b/mex/sources/libkorder/tl/permutation.hh @@ -1,6 +1,6 @@ /* * Copyright © 2004 Ondra Kamenik - * Copyright © 2019 Dynare Team + * Copyright © 2019-2023 Dynare Team * * This file is part of Dynare. * @@ -101,7 +101,7 @@ public: { } bool - operator==(const Permutation &p) + operator==(const Permutation &p) const { return permap == p.permap; } diff --git a/mex/sources/libkorder/tl/ps_tensor.hh b/mex/sources/libkorder/tl/ps_tensor.hh index 5018549c7..e981f31a8 100644 --- a/mex/sources/libkorder/tl/ps_tensor.hh +++ b/mex/sources/libkorder/tl/ps_tensor.hh @@ -1,6 +1,6 @@ /* * Copyright © 2004 Ondra Kamenik - * Copyright © 2019 Dynare Team + * Copyright © 2019-2023 Dynare Team * * This file is part of Dynare. * @@ -116,7 +116,7 @@ public: per.apply(nvmax); } bool - operator==(const PerTensorDimens &td) + operator==(const PerTensorDimens &td) const { return TensorDimens::operator==(td) && per == td.per; }