common: use std::flat_map for entity_manager
Use std::flat_map instead of boost flat_map to avoid extra dependency on
boost as std::flat_map is available.
Tested:
Verified the EntityManager interface works as expected after change as
configuration interfaces gets processed by Modbus RTU service.
```
root@ventura:~# busctl tree xyz.openbmc_project.ModbusRTU
`- /xyz
`- /xyz/openbmc_project
`- /xyz/openbmc_project/inventory_source
|- /xyz/openbmc_project/inventory_source/Heat_Exchanger_12_DevTTYUSB0
|- /xyz/openbmc_project/inventory_source/Heat_Exchanger_12_DevTTYUSB1
|- /xyz/openbmc_project/inventory_source/Reservoir_Pumping_Unit_12_DevTTYUSB0
`- /xyz/openbmc_project/inventory_source/Reservoir_Pumping_Unit_12_DevTTYUSB1
root@ventura:~# busctl tree xyz.openbmc_project.EntityManager
`- /xyz
`- /xyz/openbmc_project
|- /xyz/openbmc_project/EntityManager
`- /xyz/openbmc_project/inventory
`- /xyz/openbmc_project/inventory/system
|- /xyz/openbmc_project/inventory/system/board
| `- /xyz/openbmc_project/inventory/system/board/Ventura_Modbus
| |- /xyz/openbmc_project/inventory/system/board/Ventura_Modbus/DevTTYUSB0
| |- /xyz/openbmc_project/inventory/system/board/Ventura_Modbus/DevTTYUSB1
| |- /xyz/openbmc_project/inventory/system/board/Ventura_Modbus/Heat_Exchanger
| `- /xyz/openbmc_project/inventory/system/board/Ventura_Modbus/Reservoir_Pumping_Unit
`- /xyz/openbmc_project/inventory/system/chassis
|- /xyz/openbmc_project/inventory/system/chassis/Heat_Exchanger_12_DevTTYUSB0
|- /xyz/openbmc_project/inventory/system/chassis/Heat_Exchanger_12_DevTTYUSB1
|- /xyz/openbmc_project/inventory/system/chassis/Reservoir_Pumping_Unit_12_DevTTYUSB0
| `- /xyz/openbmc_project/inventory/system/chassis/Reservoir_Pumping_Unit_12_DevTTYUSB0/Reservoir_Pumping_Unit_12_DevTTYUSB0
`- /xyz/openbmc_project/inventory/system/chassis/Reservoir_Pumping_Unit_12_DevTTYUSB1
`- /xyz/openbmc_project/inventory/system/chassis/Reservoir_Pumping_Unit_12_DevTTYUSB1/Reservoir_Pumping_Unit_12_DevTTYUSB1
```
Change-Id: Iecb61359a0f9259bfec0f0678f13217928be67d6
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
diff --git a/common/entity_manager_interface.cpp b/common/entity_manager_interface.cpp
index 49b767a..1f4b093 100644
--- a/common/entity_manager_interface.cpp
+++ b/common/entity_manager_interface.cpp
@@ -1,12 +1,12 @@
#include "entity_manager_interface.hpp"
-#include <boost/container/flat_map.hpp>
#include <phosphor-logging/lg2.hpp>
#include <sdbusplus/async.hpp>
#include <sdbusplus/message/native_types.hpp>
#include <xyz/openbmc_project/Inventory/Item/client.hpp>
#include <algorithm>
+#include <flat_map>
#include <utility>
namespace entity_manager
@@ -20,10 +20,10 @@
std::variant<std::vector<std::string>, std::vector<uint8_t>, std::string,
int64_t, uint64_t, double, int32_t, uint32_t, int16_t,
uint16_t, uint8_t, bool>;
-using BaseConfigMap = boost::container::flat_map<std::string, BasicVariantType>;
-using ConfigData = boost::container::flat_map<std::string, BaseConfigMap>;
+using BaseConfigMap = std::flat_map<std::string, BasicVariantType>;
+using ConfigData = std::flat_map<std::string, BaseConfigMap>;
using ManagedObjectType =
- boost::container::flat_map<sdbusplus::message::object_path, ConfigData>;
+ std::flat_map<sdbusplus::message::object_path, ConfigData>;
EntityManagerInterface::EntityManagerInterface(
sdbusplus::async::context& ctx, const interface_list_t& interfaceNames,