Now that I'm removing all my template parameters, I'm having problems
with storein(col,...) template function. If I have just one parameter,
it compiles ok, if more than one, it files to compile.
Changing line 20 of ssqls1.cpp to look like this gets the error:
query.storein(res, 1, 2); <<< add 1, 2
Here's the VS2005 compiler error.
1>c:\code\tools\kep_tools\mysql++-3.0.8\lib\query.h(1037) : error C2664:
'void mysqlpp::Query::storein<stock>(std::vector<_Ty> &,const
mysqlpp::SQLTypeAdapter &)' : cannot convert parameter 2 from
'mysqlpp::SQLQueryParms' to 'const mysqlpp::SQLTypeAdapter &'
1> with
1> [
1> _Ty=stock
1> ]
1> Reason: cannot convert from 'mysqlpp::SQLQueryParms' to 'const
mysqlpp::SQLTypeAdapter'
1> No user-defined-conversion operator available that can perform
this conversion, or the operator cannot be called
1> ..\examples\ssqls1.cpp(57) : see reference to function
template instantiation 'void mysqlpp::Query::storein<std::vector<_Ty>>(T
&,const mysqlpp::SQLTypeAdapter &,const mysqlpp::SQLTypeAdapter &)'
being compiled
1> with
1> [
1> _Ty=stock,
1> T=std::vector<stock>
1> ]