Declaration shadows a field of 'sqlite::row_iterator'
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
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.
I got that error from LLVM on xcode though 😕