> Though the below code compiles I'm getting the follwoig error from the compiler:
> SqlManager.cpp:167: error: ambiguous overload for 'operator' in 'l_row'
> /usr/local/include/mysql++/row.h:114: note: candidates are: const mysqlpp::ColData
> mysqlpp::Row::operator(const char*) const
> /usr/local/include/mysql++/row.h:126: note: const mysqlpp::ColData
> mysqlpp::Row::operator(unsigned int) const
> Here's the code for line 167:
> return l_row;
> so I'm forced to do the following:
> unsigned int l_tmp = 0;
> return l_row[l_tmp];
A simpler workaround would be:
return l_row[ static_cast<unsigned>(0) ];
There is no resolution to this situation in ISO C++.
I think current practice would refactor the (char const*) overload to a
Intersix Technologies S.A.
SP: (55 11 3803-9300)
RJ: (55 21 3852-3240)
Your Security is our Business