diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-10-15 14:47:42 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-10-15 15:24:50 -0400 |
| commit | ac4dbd3b25f022b3ef025f6d3451712187308efb (patch) | |
| tree | 0d2b2fac72afd6c8ae91935ff5c1968590bd2d8a /src/common | |
| parent | cab2619aeb111bd6c5dbcc5adc0d2e8154a1e8fc (diff) | |
common: Rename binary_find.h to algorithm.h
Makes the header more general for other potential algorithms in the
future. While we're at it, include a missing <functional> include to
satisfy the use of std::less.
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/common/algorithm.h (renamed from src/common/binary_find.h) | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 906c486fd..5b51fcafa 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -95,11 +95,11 @@ add_custom_command(OUTPUT scm_rev.cpp ) add_library(common STATIC + algorithm.h alignment.h assert.h detached_tasks.cpp detached_tasks.h - binary_find.h bit_field.h bit_util.h cityhash.cpp diff --git a/src/common/binary_find.h b/src/common/algorithm.h index 5cc523bf9..18e7ece98 100644 --- a/src/common/binary_find.h +++ b/src/common/algorithm.h @@ -5,6 +5,7 @@ #pragma once #include <algorithm> +#include <functional> namespace Common { |
