This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

G++3.0.2 with MySql


Hello,

I get this kind of error:

s2.cc:24: choosing `std::basic_ostream<char, _Traits>&
std::operator<<(std::basic_ostream<char, _Traits>&, const char*) [with
_Traits = std::char_traits<char>]'  over `SQLQuery&
operator<<(SQLQuery&, const sql_ColData<std::string>&)'
s2.cc:24:   because worst conversion for the former is better than worst
conversion for the latter
make: *** [s2] Erreur 1

using Mysql++ API 1.7.9 with FLAGS for compiling:

CPPFLAGS = -g -v -Wold-style-cast

I get as result a list of warning of tis type:

/opt/mysql++/include/coldata2.hh:35: warning: use of old-style cast
/opt/mysql++/include/coldata2.hh: In function `char
operator<<(mysql_ColData<Str>, char)':

Can i explicitely, with a cast, or with a flag tell to gcc that I want
to use : SQLQuery& operator<<(SQLQuery&, const
mysql_ColData<std::string>&) ?

Thanks, for help

Olivier


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]