diff options
| author | Frank LENORMAND <lenormf@gmail.com> | 2019-12-01 21:55:55 +0100 |
|---|---|---|
| committer | Frank LENORMAND <lenormf@gmail.com> | 2019-12-01 21:55:55 +0100 |
| commit | 63092d12c0f1a1460189cbaacdb1d9f27f935e0e (patch) | |
| tree | e09dae9143a2b382674891b6fdde5a8b5b1aab60 /src/diff.hh | |
| parent | 2623366514d64b23c3fb6f6237396eec49a310b6 (diff) | |
src: Fix the build on Mac
When compiled on Mac with `clang`, the following error occurs at
compile-time:
```
./diff.hh:56:28: error: no member named 'min' in namespace 'std'
const int max_D = std::min((M + N + 1) / 2 + 1, cost_limit);
~~~~~^
```
Diffstat (limited to 'src/diff.hh')
| -rw-r--r-- | src/diff.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/diff.hh b/src/diff.hh index 0205ef73..2e719669 100644 --- a/src/diff.hh +++ b/src/diff.hh @@ -7,6 +7,7 @@ #include "array_view.hh" +#include <algorithm> #include <functional> #include <iterator> #include <memory> |
