Le Fri, 20 Apr 2007 10:55:24 +0700 (ICT), "Jeroen T. Vermeulen" <[EMAIL PROTECTED]> a écrit :
> On Fri, April 20, 2007 05:22, Masse Nicolas wrote: > > > The problem seems to come from this function in my code: > > > > void PGConnection::perform(const pqxx::transactor<pqxx::work>& > > trans) { > > _connection.perform(trans); > > } > > > > If I comment this line of code, all does link well. > > The transactors it receive are in fact a classes derived from > > pqxx::transactor<pqxx::work>. > > Ah, then that's the problem. The perform() function is templated on > the exact transactor type you use. Make your own function a template > as well and it should work: > > class PGConnection > { > // ... > template<typename T> perform(const T& trans) > { > _connection.perform(trans); > } > // .... > }; > Yes, it was the problem, now it works :). Many thanks for your help. > > Jeroen > > _______________________________________________ Libpqxx-general mailing list Libpqxx-general@gborg.postgresql.org http://gborg.postgresql.org/mailman/listinfo/libpqxx-general