Home
last modified time | relevance | path

Searched hist:"6 f056f24" (Results 1 – 1 of 1) sorted by relevance

/openbmc/bmcweb/redfish-core/lib/
H A Dlog_services.hpp6f056f24 Sun Apr 07 15:35:51 CDT 2024 Ed Tanous <ed@tanous.net> Fix post code parsing

If we use string_view with std::from_chars, we can use begin() and end()
directly (because they return pointers) and not have to do silly things
like dereference end(), which, while works in practice, is technically
undefined behavior, and some static analyzers complain about it.

Tested: Unit tests pass against both old parsePostCode and new.

Change-Id: Icfdec3b81f4a9c9bed3599571a8bc8779f9bfb98
Signed-off-by: Ed Tanous <ed@tanous.net>