Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jorticus opened this issue Apr 25, 2020 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@jorticus
Copy link

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; }
}
@martinmoene martinmoene self-assigned this Apr 25, 2020
@martinmoene martinmoene added the bug Something isn't working label Apr 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants