Hi,
I'm trying to use soci::use to conditionally insert nulls. MSVC chokes
on code like the following:
database << "insert into [bla] values (:blub)"
, soci::use((int)0, (soci::indicator)soci::i_null, "" );
The casts aren't necessary, but I have added them to explicitly state
which overload I want. What I get is the following error:
error C2665: "soci::use": Durch keine der 3 Überladungen konnten alle
Argumenttypen konvertiert werden.
(none of the 3 overloads could convert all argument types)
'soci::details::use_type_ptr soci::use<int>(T &,soci::indicator &,const
std::string &)'
"soci::details::use_type_ptr soci::use<int>(T &,std::vector<_Ty> &,const
std::string &)"
"soci::details::use_type_ptr soci::use<int>(T &,size_t,const std::string &)"
using argument list
(int, soci::indicator, const char [1])'
I can see that all three functions are potential matches for the
argument list but the one with "indicator" is clearly the best match. So
why doesn't my compiler agree with me? Is this a name lookup bug with enums?
any ideas?
Sören
--
Sören Meyer-Eppler
software developer
[email protected]
http://www.BuschnicK.net
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users