numeric/str: Add constexpr int decode
This makes it possible to convert strings to numbers in a constexpr
context.
Change-Id: I051ce8600b643533cc25a8de06e15c917db9fbd7
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/numeric/str.cpp b/src/numeric/str.cpp
index 7c3ac13..81e936d 100644
--- a/src/numeric/str.cpp
+++ b/src/numeric/str.cpp
@@ -4,4 +4,6 @@
{
template char* uintToStr<16>(char*, uintptr_t, uint8_t) noexcept;
template char* uintToStr<10>(char*, uintptr_t, uint8_t) noexcept;
+template uintptr_t strToUInt<16>(std::string_view);
+template uintptr_t strToUInt<10>(std::string_view);
} // namespace stdplus::detail