path: root/sensordatahandler.cpp
diff options
authorVernon Mauery <>2019-02-26 10:18:51 -0800
committerVernon Mauery <>2019-03-28 15:21:12 +0000
commitbdda8008226db9f4ae6d88b553ffa6192dfcfd57 (patch)
tree089ef09d801e48a3325fe02afbac450c57acdb67 /sensordatahandler.cpp
parent90b00c71067df78597db92bb60dbacf654a6f80a (diff)
Remove experimental filesystem splice
In order to be compatible with older versions of GCC that did not have the experimental filesystem moved over to the standard paths, the code would splice the experimental code into the std namespace. This is no longer necessary with yocto 2.6 and the latest versions of GCC. Change-Id: I2db13c52a91456318795819f2d45c3386b4c56d2 Signed-off-by: Vernon Mauery <>
Diffstat (limited to 'sensordatahandler.cpp')
1 files changed, 1 insertions, 13 deletions
diff --git a/sensordatahandler.cpp b/sensordatahandler.cpp
index 7903138..1de1540 100644
--- a/sensordatahandler.cpp
+++ b/sensordatahandler.cpp
@@ -3,6 +3,7 @@
#include "sensorhandler.hpp"
#include <bitset>
+#include <filesystem>
#include <ipmid/types.hpp>
#include <ipmid/utils.hpp>
#include <optional>
@@ -11,19 +12,6 @@
#include <sdbusplus/message/types.hpp>
#include <xyz/openbmc_project/Common/error.hpp>
-#if __has_include(<filesystem>)
-#include <filesystem>
-#elif __has_include(<experimental/filesystem>)
-#include <experimental/filesystem>
-namespace std
-// splice experimental::filesystem into std
-namespace filesystem = std::experimental::filesystem;
-} // namespace std
-#error filesystem not available
namespace ipmi
namespace sensor
OpenPOWER on IntegriCloud