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

Resolved an issue with DBO_EXTERN_TEMPLATES and DBO_INSTANTIATE_TEMPLATES #176

Merged
merged 1 commit into from
Jan 26, 2021

Conversation

skoehler47
Copy link
Contributor

The Wt::Dbo::query_result_traits<> template was declared and defined as 'struct' in SqlTraits.h, but is declared as 'class' in the DBO_EXTERN_TEMPLATES and DBO_INSTANTIATE_TEMPLATES macros. This inconsistency causes multiple compiler warnings, such as C4099 on Visual Studio 2017/2019., whenever the macros are used. Declaring as struct solves the issue.

@emweb
Copy link
Collaborator

emweb commented Jan 26, 2021

If you change your commit message to be more like the description of your pull request I can merge it.

Now it's one long line broken by ...

Regards,
Roel

@emweb
Copy link
Collaborator

emweb commented Jan 26, 2021

My intention was that you amend your commit and add the body of your PR as well, but I'll just go ahead and fix that for you 🙂

Regards,
Roel

…ATES

The Wt::Dbo::query_result_traits<> template was declared and defined as 'struct'
in SqlTraits.h, but is declared as 'class' in the DBO_EXTERN_TEMPLATES
and DBO_INSTANTIATE_TEMPLATES macros. This inconsistency causes multiple
compiler warnings, such as C4099 on Visual Studio 2017/2019., whenever the
macros are used. Declaring as struct solves the issue.
@skoehler47
Copy link
Contributor Author

Sorry, misunderstood what you meant. Thanks for changing it :)

Best regards,
Steven

@emweb emweb merged commit acff867 into emweb:master Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants