From 528be2b3dc5a77374d9540975f93fd4e7953cd2b Mon Sep 17 00:00:00 2001 From: silverqx Date: Mon, 19 Dec 2022 19:55:28 +0100 Subject: [PATCH] used std::ranges::sort() --- .../orm/tiny/relations/concerns/interactswithpivottable.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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>();