Skip to content

Commit

Permalink
stringify boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
hugary1995 committed Dec 7, 2023
1 parent 7abf7b2 commit 0d65d17
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/neml2/misc/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,13 @@ stringify(const T & t)
return os.str();
}

template <>
inline std::string
stringify(const bool & t)
{
return t ? "true" : "false";
}

namespace details
{
template <typename... S>
Expand Down

0 comments on commit 0d65d17

Please sign in to comment.