From: Warren Young Date: December 31 2007 1:11pm Subject: Re: the one remaining warning from GCC List-Archive: http://lists.mysql.com/plusplus/7327 Message-Id: <4778EA6C.7060407@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Jonathan Wakely wrote: > > /lib/query.cpp: In copy constructor 'mysqlpp::Query::Query(const > mysqlpp::Query&)': > ./lib/query.cpp:53: warning: base class 'struct std::basic_ios std::char_traits >' should be explicitly initialized in the copy > constructor > > I assume this is the one the svn log says you don't know what it's > babbling about. Yup. It's gratifying to know someone's reading the checkin log. :) > Very similar situation described here: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11159#c13 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. Mull, mull...