Skip to content

Commit 16f6a1d

Browse files
committed
Improved code [skip ci]
1 parent 7081d06 commit 16f6a1d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/helper.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ void assert_equal(const T& left, const U& right, const std::source_location& loc
1717
}
1818

1919
template<typename T>
20-
void assert_exception(std::function<void(void)> code, std::optional<std::string_view> message = std::nullopt) {
20+
void assert_exception(const std::function<void(void)>& code, std::optional<std::string_view> message = std::nullopt) {
2121
std::optional<T> exception;
2222
try {
2323
code();

0 commit comments

Comments
 (0)