From: Warren Young Date: April 21 2005 3:22pm Subject: Re: Passing DateTime object to template query (i realy need help, this is my last chance) List-Archive: http://lists.mysql.com/plusplus/4270 Message-Id: <4267C53B.8090007@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cableguy wrote: > error C2440: 'type cast' : cannot convert from 'mysqlpp::DateTime' to > 'std::basic_string<_Elem,_Traits,_Ax>' > with > [ > _Elem=char, > _Traits=std::char_traits, > _Ax=std::allocator > ] > > error C2440: 'type cast' : cannot convert from 'mysqlpp::DateTime' to > 'mysqlpp::SQLString' > > > Using VS 2003 and mysql++ 1.7.32 Your mission, then, is to find out why this code from lib/datetime.h does not work: inline mysql_dt_base::operator std::string() { return stream2string(*this); }