Re: [Boost-users] fatal error C1001 with visual studio 8, boost 1.34, BOOST_AUTO() macro
----- Original Message ---- From: Arkadiy Vertleyb
To: boost-users@lists.boost.org Sent: Thursday, May 17, 2007 11:56:38 AM Subject: Re: [Boost-users] fatal error C1001 with visual studio 8, boost 1.34, BOOST_AUTO() macro "Trigve Siver"
wrote The signature of exec() method is:
--- result exec(const PGSTD::string &Query, const PGSTD::string &Desc=PGSTD::string()); ---
Is "pqxx::result" the exact type the expression T.exec("some select...") returns? Can you do:
pqxx::result r; BOOST_AUTO(rr, r);
?
Yes I can do this without error:
--- pqxx::result rs = T.exec(sql_stream.str()); BOOST_AUTO(r, rs); ---
Can you paste the exact line of code that causes the error?
--- BOOST_AUTO(rs, T.exec("SELECT 1")); ---
Regards, Arkadiy
thanks Trigve ____________________________________________________________________________________ No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. http://mobile.yahoo.com/mail
On 5/17/07, Arkadiy Vertleyb
"Trigve Siver"
wrote BOOST_AUTO(rs, T.exec("SELECT 1"));
One more question -- what is T? Is it a template parameter of some sort?
pqxx::nontransaction T(*m_pSQLConnection, "GetCustomer");
Regards, Arkadiy
best regards, -- Felipe Magno de Almeida
"Felipe Magno de Almeida"
One more question -- what is T? Is it a template parameter of some sort?
pqxx::nontransaction T(*m_pSQLConnection, "GetCustomer");
Strange... Can you post the entire file where you use BOOST_AUTO (and also the file(s) where you register your types)? Thanks, Arkadiy
participants (3)
-
Arkadiy Vertleyb
-
Felipe Magno de Almeida
-
Trigve Siver