Skip to content

Commit 267241a

Browse files
committed
Fix macOS compilation issue, hopefully?
1 parent 5711b59 commit 267241a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/symop-map-generator.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
#include <cassert>
2828

29+
#include <algorithm>
2930
#include <array>
3031
#include <charconv>
3132
#include <iostream>
@@ -379,7 +380,7 @@ int main(int argc, char* const argv[])
379380

380381
// --------------------------------------------------------------------
381382

382-
sort(data.begin(), data.end());
383+
std::sort(data.begin(), data.end());
383384

384385
// --------------------------------------------------------------------
385386

@@ -405,7 +406,7 @@ const space_group kSpaceGroups[] =
405406
spacegroups.emplace_back(info.old[1], nr, info.xHM, info.Hall);
406407
}
407408

408-
sort(spacegroups.begin(), spacegroups.end());
409+
std::sort(spacegroups.begin(), spacegroups.end());
409410

410411
for (auto [old, nr, xHM, Hall]: spacegroups)
411412
{

0 commit comments

Comments
 (0)