mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 16:23:02 +00:00
nix-profile: add FIXME about using C++20 std::ranges
This commit is contained in:
parent
0167862e8e
commit
12538605fd
@ -332,6 +332,8 @@ struct CmdProfileInstall : InstallablesCommand, MixDefaultProfile
|
|||||||
try {
|
try {
|
||||||
updateProfile(manifest.build(store));
|
updateProfile(manifest.build(store));
|
||||||
} catch (BuildEnvFileConflictError & conflictError) {
|
} 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) {
|
auto findRefByFilePath = [&]<typename Iterator>(Iterator begin, Iterator end) {
|
||||||
for (auto it = begin; it != end; it++) {
|
for (auto it = begin; it != end; it++) {
|
||||||
auto profileElement = *it;
|
auto profileElement = *it;
|
||||||
|
Loading…
Reference in New Issue
Block a user