summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEd Tanous <ed@tanous.net>2024-04-07 23:35:51 +0300
committerEd Tanous <ed@tanous.net>2024-04-11 23:25:04 +0300
commit6f056f246d9bcfd611102ee712d4a2935504b448 (patch)
tree4741f732fb0853fd10d89b24c6c94053baa68cbd /include
parent8d45b9cbd583312fa45aa9e5cb4d41dd0cb17afa (diff)
downloadbmcweb-6f056f246d9bcfd611102ee712d4a2935504b448.tar.xz
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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions