AK: Specialise convert_to_uint<T> and to_uint<T> for 'long' variants

This commit is contained in:
AnotherTest 2021-01-11 21:39:22 +03:30 committed by Andreas Kling
parent ccf4368ca5
commit 7029a8f605
2 changed files with 4 additions and 0 deletions

View file

@ -170,6 +170,8 @@ template Optional<u8> convert_to_uint(const StringView& str);
template Optional<u16> convert_to_uint(const StringView& str);
template Optional<u32> convert_to_uint(const StringView& str);
template Optional<u64> convert_to_uint(const StringView& str);
template Optional<long> convert_to_uint(const StringView& str);
template Optional<long long> convert_to_uint(const StringView& str);
template<typename T>
Optional<T> convert_to_uint_from_hex(const StringView& str)

View file

@ -243,6 +243,8 @@ template Optional<u8> StringView::to_uint() const;
template Optional<u16> StringView::to_uint() const;
template Optional<u32> StringView::to_uint() const;
template Optional<u64> StringView::to_uint() const;
template Optional<long> StringView::to_uint() const;
template Optional<long long> StringView::to_uint() const;
unsigned StringView::hash() const
{