aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob van der Linden <bobvanderlinden@gmail.com>2023-03-01 07:40:44 +0100
committerBob van der Linden <bobvanderlinden@gmail.com>2023-03-01 07:40:53 +0100
commit12538605fdc99be846b736080558567edbb8a393 (patch)
treefced23f8d555d628afb8e92a954c456be4276d29
parent0167862e8e3faddeab6fb40a08c05a63865fe96b (diff)
nix-profile: add FIXME about using C++20 std::ranges
-rw-r--r--src/nix/profile.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix/profile.cc b/src/nix/profile.cc
index 3464a977d..3d5c0c8a3 100644
--- a/src/nix/profile.cc
+++ b/src/nix/profile.cc
@@ -332,6 +332,8 @@ struct CmdProfileInstall : InstallablesCommand, MixDefaultProfile
try {
updateProfile(manifest.build(store));
} catch (BuildEnvFileConflictError & conflictError) {
+ // FIXME use C++20 std::ranges once macOS has it
+ // See https://github.com/NixOS/nix/compare/3efa476c5439f8f6c1968a6ba20a31d1239c2f04..1fe5d172ece51a619e879c4b86f603d9495cc102
auto findRefByFilePath = [&]<typename Iterator>(Iterator begin, Iterator end) {
for (auto it = begin; it != end; it++) {
auto profileElement = *it;