Add include <algorithm> to fix building with gcc 14

With gcc 14 some C++ Standard Library headers have been changed to no longer include other headers that were being used internally by the library. In logiops's case it is the <algorithm> header.

Downstream Gentoo bug:
https://bugs.gentoo.org/917002

GCC 14 porting guide:
https://gcc.gnu.org/gcc-14/porting_to.html

Signed-off-by: Kostadin Shishmanov <kocelfc@tutanota.com>
This commit is contained in:
Kostadin Shishmanov 2023-11-07 19:10:29 +02:00
parent 94f6dbab53
commit da742af3a5
No known key found for this signature in database
GPG Key ID: 0C0D0DF86C3C2269

View File

@ -22,6 +22,7 @@
#include <type_traits> #include <type_traits>
#include <functional> #include <functional>
#include <utility> #include <utility>
#include <algorithm>
namespace logid::config { namespace logid::config {
template<typename T> template<typename T>