Skip to content

Commit

Permalink
Fix compilation under CentOS 7 and Clang (#415)
Browse files Browse the repository at this point in the history
* Fix compilation under CentOS 7 and Clang

Signed-off-by: Mathieu BAGUE <mathieu.bague@rte-france.com>
  • Loading branch information
Mathieu BAGUE authored Jan 10, 2022
1 parent a3c2274 commit f31106a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions include/powsybl/iidm/BusCache.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <mutex>
#include <string>

#include <powsybl/iidm/Bus.hpp>
#include <powsybl/stdcxx/optional.hpp>
#include <powsybl/stdcxx/range.hpp>
#include <powsybl/stdcxx/reference.hpp>
Expand All @@ -21,8 +22,6 @@ namespace powsybl {

namespace iidm {

class Bus;

class BusCache {
public:
using BusSupplier = std::function<stdcxx::const_range<Bus>()>;
Expand Down
2 changes: 1 addition & 1 deletion include/powsybl/stdcxx/flattened.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class FlatteningIterator :

struct FlattenForwarder {};

const FlattenForwarder flattened;
const FlattenForwarder flattened {};

template <typename SinglePassRange>
using FlattenRange = boost::iterator_range<FlatteningIterator<typename boost::range_iterator<SinglePassRange>::type>>;
Expand Down

0 comments on commit f31106a

Please sign in to comment.