From 3176ba68ccfb0b473fd0abd8734ffb834b248c8c Mon Sep 17 00:00:00 2001 From: Mathieu BAGUE Date: Mon, 10 Jan 2022 16:19:11 +0100 Subject: [PATCH 1/2] Fix compilation under CentOS 7 and Clang Signed-off-by: Mathieu BAGUE --- include/powsybl/iidm/BusCache.hpp | 1 + include/powsybl/stdcxx/flattened.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/powsybl/iidm/BusCache.hpp b/include/powsybl/iidm/BusCache.hpp index f68b2ba71..877f1e9bb 100644 --- a/include/powsybl/iidm/BusCache.hpp +++ b/include/powsybl/iidm/BusCache.hpp @@ -13,6 +13,7 @@ #include #include +#include #include #include #include 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>>; From d1171619e93a62abc5fc1b11bacef134b1c78570 Mon Sep 17 00:00:00 2001 From: Mathieu BAGUE Date: Mon, 10 Jan 2022 16:44:23 +0100 Subject: [PATCH 2/2] Fix compilation under CentOS 7 and Clang Signed-off-by: Mathieu BAGUE --- include/powsybl/iidm/BusCache.hpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/powsybl/iidm/BusCache.hpp b/include/powsybl/iidm/BusCache.hpp index 877f1e9bb..62ca0343c 100644 --- a/include/powsybl/iidm/BusCache.hpp +++ b/include/powsybl/iidm/BusCache.hpp @@ -22,8 +22,6 @@ namespace powsybl { namespace iidm { -class Bus; - class BusCache { public: using BusSupplier = std::function()>;