From f31106a93806f4c6d8a83ae0e3a3876dc4fa58ff Mon Sep 17 00:00:00 2001 From: Mathieu BAGUE Date: Mon, 10 Jan 2022 17:25:19 +0100 Subject: [PATCH] Fix compilation under CentOS 7 and Clang (#415) * Fix compilation under CentOS 7 and Clang Signed-off-by: Mathieu BAGUE --- include/powsybl/iidm/BusCache.hpp | 3 +-- include/powsybl/stdcxx/flattened.hpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/powsybl/iidm/BusCache.hpp b/include/powsybl/iidm/BusCache.hpp index f68b2ba71..62ca0343c 100644 --- a/include/powsybl/iidm/BusCache.hpp +++ b/include/powsybl/iidm/BusCache.hpp @@ -13,6 +13,7 @@ #include #include +#include #include #include #include @@ -21,8 +22,6 @@ namespace powsybl { namespace iidm { -class Bus; - class BusCache { public: using BusSupplier = std::function()>; diff --git a/include/powsybl/stdcxx/flattened.hpp b/include/powsybl/stdcxx/flattened.hpp index 58e1cc3f2..12d3b0477 100644 --- a/include/powsybl/stdcxx/flattened.hpp +++ b/include/powsybl/stdcxx/flattened.hpp @@ -103,7 +103,7 @@ class FlatteningIterator : struct FlattenForwarder {}; -const FlattenForwarder flattened; +const FlattenForwarder flattened {}; template using FlattenRange = boost::iterator_range::type>>;