diff --git a/include/orm/tiny/relations/concerns/interactswithpivottable.hpp b/include/orm/tiny/relations/concerns/interactswithpivottable.hpp index 0179f332d..46e3fd093 100644 --- a/include/orm/tiny/relations/concerns/interactswithpivottable.hpp +++ b/include/orm/tiny/relations/concerns/interactswithpivottable.hpp @@ -7,7 +7,6 @@ TINY_SYSTEM_HEADER #include -#include #include #include "orm/exceptions/domainerror.hpp" @@ -459,8 +458,8 @@ namespace Concerns // Compute different keys, these keys will be detached auto ids = idsFromRecords(idsWithAttributes); - ranges::sort(ids, {}, castKey); - ranges::sort(current, {}, castKey); + std::ranges::sort(ids, {}, castKey); + std::ranges::sort(current, {}, castKey); auto detach = ranges::views::set_difference(current, ids, {}, castKey, castKey) | ranges::to>();