diff --git a/include/sparrow/typed_array.hpp b/include/sparrow/typed_array.hpp index c80c67f6..8ad893ae 100644 --- a/include/sparrow/typed_array.hpp +++ b/include/sparrow/typed_array.hpp @@ -483,7 +483,7 @@ namespace sparrow } return true; #else - return std::equal(ta1.begin(), ta1.end(), ta2.begin(), ta2.end()); + return std::equal(ta1.cbegin(), ta1.cend(), ta2.cbegin(), ta2.cend()); #endif }