SqliteModernCpp / sqlite_modern_cpp

The C++14 wrapper around sqlite library
MIT License
899 stars 155 forks source link

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

Open ViralTaco opened 6 years ago

ViralTaco commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

I got that error from LLVM on xcode though 😕