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

Linker error with gcc 10 and multiple translation units including superior_mysqlpp.hpp #132

Closed
daniele77 opened this issue Dec 18, 2020 · 1 comment

Comments

@daniele77
Copy link

With recent compilers (e.g., gcc 10) the linking of multiple translation units including the header superior_mysqlpp.hpp results in an error. The linker complains about multiple definitions of SuperiorMySqlpp::mapSecondGetter.

This is because of this definition:

auto mapSecondGetter = [](auto&& item) -> auto& { return std::forward<decltype(item)>(item).second; };
)

I provided a solution to this issue in the PR #131

@OpatrilPeter
Copy link
Contributor

Closed by #134

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants