We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c53e285 commit 6ce7633Copy full SHA for 6ce7633
1 file changed
test/helper.hpp
@@ -26,6 +26,6 @@ void assert_exception(std::function<void(void)> code, std::optional<std::string_
26
}
27
assert_equal(exception.has_value(), true);
28
if (message) {
29
- assert_equal(std::string_view{(*exception).what()}, *message);
+ assert_equal(std::string_view{exception.value().what()}, message.value());
30
31
0 commit comments