Re: [Boost-users] fatal error C1001 with visual studio 8, boost 1.34, BOOST_AUTO() macro

No problem: --- class A { public: pqxx::result test(const std::string &rString, const std::string &rDesc = std::string()) // fatal error // pqxx::result test(const std::string &rString) // OK { return pqxx::result(); } pqxx::result test1(void) { return pqxx::result(); } }; int main(int argc, char* argv[]) { A a; BOOST_AUTO(rs, a.test("SELECT 1")); // fatal error (when used A::test(const std::string &rString, const std::string &rDesc = std::string())) ... } --- So when I use the first signature (pqxx::result test(const std::string &rString, const std::string &rDesc = std::string()) there is fatal error. Otherwise everything compile OK.
std::cout << typeid(T.exec("SELECT 1")).name() << std::endl; Output: class pqxx::result
Regards, Arkadiy
Thanks Trigve ____________________________________________________________________________________Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7

Trigve, I strongly suggest you try an identifier other than "T". Arkadiy, I suggest you download and install postgresql so you can reproduce this; it's free. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com Don't Miss BoostCon 2007! ==> http://www.boostcon.com

"David Abrahams"
Apparently the problem is already reproduced without PostgreSQL, but I see your point. The next time I feel the discussion becomes too lengthy I will move it to the private email exchange. Regards, Arkadiy

on Thu May 17 2007, "Arkadiy Vertleyb"
That wasn't really my point, but that's OK. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com
participants (3)
-
Arkadiy Vertleyb
-
David Abrahams
-
Trigve Siver