|
Boost Users : |
From: Arkadiy Vertleyb (vertleyb_at_[hidden])
Date: 2007-05-17 15:31:51
"Trigve Siver" <trigves_at_[hidden]> wrote
> class A
> {
> public:
> pqxx::result test(int a)
> {
> return pqxx::result();
> }
> };
> int main(int argc, char* argv[])
> {
> BOOST_AUTO(rs, a.test(1)); // OK
> }
One more experiment -- can you change the function signature to accept char*
(or maybe some other string type to exactly match the signature of exec()),
and use it passing "SELECT 1" to it?
Also, can you call:
cout << typeid(T.exec("SELECT 1")).name() << endl;
and see if it's compiled and what gets output?
Regards,
Arkadiy
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net