diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-11-21 10:42:34 -0500 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-11-28 12:05:11 -0500 |
commit | f0b020fb322c9cf1c245e6b0614e02014a3509c6 (patch) | |
tree | 87986a89888131352ea0e7f99a6a53cfbf37828e /control/manager.cpp | |
parent | 4978e06c45cfe70f5ccfc6cdce92a35ae5546198 (diff) | |
download | phosphor-fan-presence-f0b020fb322c9cf1c245e6b0614e02014a3509c6.tar.gz phosphor-fan-presence-f0b020fb322c9cf1c245e6b0614e02014a3509c6.zip |
control: manager: Avoid the need for fconcepts
Use of auto in a function parameter list is supported in c++17 but
gcc8 requires enabling concepts TS support. We don't require a
template anyway - just be explicit here and avoid the need for
-fconcepts until such a time that other concepts TS features are
required.
Change-Id: Iec6205a2e4da41aeb5840dd9942778ba0f373842
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'control/manager.cpp')
-rw-r--r-- | control/manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/control/manager.cpp b/control/manager.cpp index bc6b18e..6994f91 100644 --- a/control/manager.cpp +++ b/control/manager.cpp @@ -45,7 +45,7 @@ constexpr auto FAN_CONTROL_READY_TARGET = "obmc-fan-control-ready@0.target"; * @param[in] condition - The condition to check if true * @return result - True if the condition is true */ -bool checkCondition(sdbusplus::bus::bus& bus, const auto& c) +bool checkCondition(sdbusplus::bus::bus& bus, const Condition& c) { auto& type = std::get<conditionTypePos>(c); auto& properties = std::get<conditionPropertyListPos>(c); |