diff --git a/include/flux/core/assert.hpp b/include/flux/core/assert.hpp index c6a580a7..5c1416be 100644 --- a/include/flux/core/assert.hpp +++ b/include/flux/core/assert.hpp @@ -88,8 +88,8 @@ struct indexed_bounds_check_fn { } } #endif - assert_fn{}(idx >= T{0}, "index cannot be negative", std::move(loc)); - assert_fn{}(idx < limit, "out-of-bounds sequence access", std::move(loc)); + assert_fn{}(idx >= T{0}, "index cannot be negative", loc); + assert_fn{}(idx < limit, "out-of-bounds sequence access", loc); } } };