Skip to content

Commit

Permalink
Allow just message for optional throw
Browse files Browse the repository at this point in the history
  • Loading branch information
emilydolson committed Nov 26, 2023
1 parent 9d8f4c4 commit 2412737
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/emp/base/_optional_throw.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ namespace emp {
assert_print(ss, std::forward<EXTRA>(extra)...);
}

template <typename T>
void assert_print_second(std::stringstream & ss, std::string name, T && val) {;}

template <typename T, typename... EXTRA>
void assert_print_first(std::stringstream & ss, std::string name, T && val, EXTRA &&... extra) {
if constexpr ( emp::is_streamable<std::stringstream, T>::value ) {
Expand Down

0 comments on commit 2412737

Please sign in to comment.