List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:December 31 2007 1:11pm
Subject:Re: the one remaining warning from GCC
View as plain text  
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<char,
> std::char_traits<char> >' 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...
Thread
the one remaining warning from GCCJonathan Wakely29 Dec
  • Re: the one remaining warning from GCCWarren Young31 Dec