diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2023-06-23 14:57:00 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2023-06-23 14:59:44 +0300 |
commit | d85418e397ffffb2446eac9799b381502518b780 (patch) | |
tree | 1002299c81d91f228f58a42d74c62ae387b1df53 /redfish-core/src | |
parent | 6995c1ce42d5bc2d223af7d3b2f3cae613d3b231 (diff) | |
download | bmcweb-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/src')
-rw-r--r-- | redfish-core/src/error_messages.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redfish-core/src/error_messages.cpp b/redfish-core/src/error_messages.cpp index 1742d23114..7d1f3a94f9 100644 --- a/redfish-core/src/error_messages.cpp +++ b/redfish-core/src/error_messages.cpp @@ -19,7 +19,6 @@ #include "logging.hpp" #include "registries.hpp" #include "registries/base_message_registry.hpp" -#include "source_location.hpp" #include <boost/beast/http/field.hpp> #include <boost/beast/http/status.hpp> @@ -27,6 +26,7 @@ #include <array> #include <cstddef> +#include <source_location> #include <span> #include <string> #include <utility> @@ -280,7 +280,7 @@ nlohmann::json internalError(void) return getLog(redfish::registries::base::Index::internalError, {}); } -void internalError(crow::Response& res, const bmcweb::source_location location) +void internalError(crow::Response& res, const std::source_location location) { BMCWEB_LOG_CRITICAL << "Internal Error " << location.file_name() << "(" << location.line() << ":" << location.column() << ") `" |