summaryrefslogtreecommitdiff
path: root/redfish-core/include
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2023-06-23 14:57:00 +0300
committerPatrick Williams <patrick@stwcx.xyz>2023-06-23 14:59:44 +0300
commitd85418e397ffffb2446eac9799b381502518b780 (patch)
tree1002299c81d91f228f58a42d74c62ae387b1df53 /redfish-core/include
parent6995c1ce42d5bc2d223af7d3b2f3cae613d3b231 (diff)
downloadbmcweb-d85418e397ffffb2446eac9799b381502518b780.tar.xz
error_messages: remove source_location indirect
clang-16 now supports std::source_location so remove the indirection that uses experimental::source_location in some cases. Tested: Compiled with `CXX=clang++`. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Id55bdf01855206c6892684e1e56cc5ff56e2b5a2
Diffstat (limited to 'redfish-core/include')
-rw-r--r--redfish-core/include/error_messages.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/redfish-core/include/error_messages.hpp b/redfish-core/include/error_messages.hpp
index 6f1e4e8911..6c5952d727 100644
--- a/redfish-core/include/error_messages.hpp
+++ b/redfish-core/include/error_messages.hpp
@@ -16,12 +16,12 @@
#pragma once
#include "http_response.hpp"
-#include "source_location.hpp"
#include <boost/url/url_view.hpp>
#include <nlohmann/json.hpp>
#include <cstdint>
+#include <source_location>
#include <string>
#include <string_view>
@@ -121,8 +121,8 @@ void actionParameterValueNotInList(crow::Response& res, std::string_view arg1,
* @returns Message InternalError formatted to JSON */
nlohmann::json internalError();
-void internalError(crow::Response& res, bmcweb::source_location location =
- bmcweb::source_location::current());
+void internalError(crow::Response& res, std::source_location location =
+ std::source_location::current());
/**
* @brief Formats UnrecognizedRequestBody message into JSON