sqlite_modern_cpp icon indicating copy to clipboard operation
sqlite_modern_cpp copied to clipboard

Declaration shadows a field of 'sqlite::row_iterator'

Open ViralTaco opened this issue 7 years ago • 2 comments

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

ViralTaco avatar May 08 '18 12:05 ViralTaco

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.

zauguin avatar May 20 '18 14:05 zauguin

I got that error from LLVM on xcode though 😕

ViralTaco avatar May 25 '18 05:05 ViralTaco