Jonathan Wakely wrote:
> /lib/query.cpp: In copy constructor 'mysqlpp::Query::Query(const
> ./lib/query.cpp:53: warning: base class 'struct std::basic_ios<char,
> std::char_traits<char> >' should be explicitly initialized in the copy
> I assume this is the one the svn log says you don't know what it's
> babbling about.
It's gratifying to know someone's reading the checkin log. :)
> Very similar situation described here:
Oh, lovely, virtual base classes. Urp. One of the few C++ features I
try very hard to ignore.
> you can prevent the warning by initialising std::ios() in your ctor,
> but IMHO the warning's not much use anyway.
I'm gonna have to think about this one. If I add the virtual base ctor
call, it's likely to just confuse me again 6 months out. I'll yank it,
and we'll be back here again the next time I unleash the pedant on the
code. But, if I add a comment telling me why I can ignore the warning,
that's pretty ugly, too.