Skip to content

Commit a89cc36

Browse files
committed
fixed maybe unused result of std::from_chars result
1 parent ad93ed4 commit a89cc36

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/oryx/chron/details/string_cast.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ namespace oryx::chron::details {
99
template <typename T>
1010
auto StringCast(std::string_view sv) -> T {
1111
T value{};
12-
auto [ptr, ec] = std::from_chars(sv.data(), sv.data() + sv.size(), value);
13-
assert(ec == std::errc{} && "Casting to string failed misserably!");
12+
[[maybe_unused]] auto result = std::from_chars(sv.data(), sv.data() + sv.size(), value);
13+
assert(result.ec == std::errc{} && "Casting to string failed misserably!");
1414
return value;
1515
}
1616

0 commit comments

Comments
 (0)