diff options
author | Ed Tanous <ed.tanous@intel.com> | 2019-03-14 02:23:37 +0300 |
---|---|---|
committer | Ed Tanous <ed.tanous@intel.com> | 2019-03-29 23:41:09 +0300 |
commit | e278c18fc22faa2e5099f3f43a813942144c7560 (patch) | |
tree | 49071083c913f58f8fc5873a55d1aa3b2ed10576 /redfish-core/lib/sensors.hpp | |
parent | d265304eda0053cd45d21aa7a269cc2212fd8d24 (diff) | |
download | bmcweb-e278c18fc22faa2e5099f3f43a813942144c7560.tar.xz |
update ASIO interfaces
This commit does 2 things.
1. Upgrades and prepares bmcweb for boost 1.70.
2. Allows us to compile with BOOST_AIO_NO_DEPRECATED
Tested: Compiled against 1.69 and 1.70. All changes should be no-op.
Change-Id: I557ecd840fe2b88c0fa01978a1b666b40ccccca4
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Diffstat (limited to 'redfish-core/lib/sensors.hpp')
-rw-r--r-- | redfish-core/lib/sensors.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/redfish-core/lib/sensors.hpp b/redfish-core/lib/sensors.hpp index bbed0479a1..d3c858f480 100644 --- a/redfish-core/lib/sensors.hpp +++ b/redfish-core/lib/sensors.hpp @@ -588,8 +588,15 @@ static void { return; // don't have to have this interface } - for (const auto& [path, objDict] : resp) + for (const std::pair<std::string, + std::vector<std::pair< + std::string, std::vector<std::string>>>>& + pathPair : resp) { + const std::string& path = pathPair.first; + const std::vector< + std::pair<std::string, std::vector<std::string>>>& objDict = + pathPair.second; if (objDict.empty()) { continue; // this should be impossible |