From dc6222611ad14a33f642396558ba84ecba9d6605 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 14 Mar 2022 18:02:18 +0100 Subject: perf: add noexcept almost everywhere --- src/conversion.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/conversion.hpp') diff --git a/src/conversion.hpp b/src/conversion.hpp index f915606..9f6f933 100644 --- a/src/conversion.hpp +++ b/src/conversion.hpp @@ -10,7 +10,7 @@ class ConversionResult { public: explicit ConversionResult(const bool &success_, const ResultType &result_, - const std::string_view &fail_reason_ = "") + const std::string_view &fail_reason_ = "") noexcept : success(success_), result(result_), fail_reason(fail_reason_) { } @@ -29,4 +29,4 @@ static constexpr auto IS_UINT_IN_RANGE = ctll::fixed_string("^[0-9]{1,19}$"); * @param str A string that possibly is a unsigned integer * @returns A conversion result */ -ConversionResult str_to_uint(const std::string_view &str); +ConversionResult str_to_uint(const std::string_view &str) noexcept; -- cgit v1.2.3-18-g5258