martinmoene/expected-lite

Multiple definition of detail::text when compiled with no exceptions

jorticus opened this issue · 0 comments

When compiling this library with no exceptions, the linker fails with the following:

multiple definition of `nonstd::expected_lite::detail::text(char const*)'

It appears the following function is the cause...
Suggested fix - make the function static:

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