MySQL Lists are EOL. Please join:

List:MySQL++« Previous MessageNext Message »
From:Jim Wallace Date:January 28 2009 1:39am
Subject:storein with parameters
View as plain text  
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
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>        ]
RELEASE: v3.0.5Warren Young7 Aug
  • query.str() in template query -- help!Jim Wallace28 Jan
    • RE: query.str() in template query -- <blush>Jim Wallace28 Jan
      • Re: query.str() in template query -- <blush>Warren Young28 Jan
        • storein with parametersJim Wallace28 Jan
          • Re: storein with parametersWarren Young28 Jan
            • RE: storein with parametersJim Wallace28 Jan
              • Re: storein with parametersWarren Young28 Jan
            • Question about BadQueryJim Wallace28 Jan
              • Re: Question about BadQueryWarren Young28 Jan
RE: RELEASE: v3.0.5Bernard8 Aug
  • Re: RELEASE: v3.0.5Warren Young8 Aug
    • Re: RELEASE: v3.0.5Alex9 Aug
RE: Question about BadQueryJim Wallace28 Jan
RE: Question about BadQueryDale Stewart28 Jan
RE: Question about BadQueryDale Stewart28 Jan
  • Re: Question about BadQueryWarren Young28 Jan