Skip to content

Commit

Permalink
Prevent detail::text() to be multiply defined (#37, thanks to @jorticus)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmoene committed Apr 25, 2020
1 parent 54a463f commit 4010807
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/nonstd/expected.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1238,8 +1238,9 @@ nsel_inline17 constexpr unexpect_t in_place_unexpected{};
#if nsel_CONFIG_NO_EXCEPTIONS

namespace detail {
bool text( char const * /*text*/ ) { return true; }
inline bool text( char const * /*text*/ ) { return true; }
}

template< typename Error >
struct error_traits
{
Expand Down

0 comments on commit 4010807

Please sign in to comment.