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

Declaration shadows a field of 'sqlite::row_iterator' #162

Open
ViralTaco opened this issue May 8, 2018 · 2 comments
Open

Declaration shadows a field of 'sqlite::row_iterator' #162

ViralTaco opened this issue May 8, 2018 · 2 comments

Comments

@ViralTaco
Copy link

Hi, got that warning.
In sqlite_modern_cpp.h line 151 to 156.

Code was:
template<class ...Types> operator std::tuple<Types...>() { std::tuple<Types...> value; *this >> value; return value; }

Changing it to:

template<class ...Types> operator std::tuple<Types...>() { std::tuple<Types...> values; *this >> values; return values; }
Has silenced the warning. Haven't really bug tested it since but I don't see why it wouldn't work…
It seems to work anyway.

Thank you for your time.
-aj

@zauguin
Copy link
Collaborator

zauguin commented May 20, 2018

Thanks for the report. This is a bug in Visual C++ because the "shadowed" field is not visible in the first place. According to this bug report the Visual C++ team is currently investigating the issue.

@ViralTaco
Copy link
Author

I got that error from LLVM on xcode though 😕

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