Boost logo

Boost Users :

From: Arkadiy Vertleyb (vertleyb_at_[hidden])
Date: 2007-05-16 16:50:54


"Trigve Siver" <trigves_at_[hidden]> wrote

> I'm using boost 1.34 with postgresql c++ binding (libpqxx). I've got this
> fatal error:
>
> fatal error C1001: An internal error has occurred in the compiler.
> (compiler file
> 'F:\SP\vctools\compiler\utc\src\P2\main.c[0x10C68EF3:0x00000008]', line
> 182)
> To work around this problem, try simplifying or changing the program near
> the locations listed above.
> Please choose the Technical Support command on the Visual C++
> Help menu, or open the Technical Support help file for more information
>
> when compiling sources with BOOST_AUTO macro from boost/typeof library.
> The code that triggers this error is:
>
> ---
> pqxx::nontransaction T(*m_pSQLConnection, "GetCustomer");
> BOOST_AUTO(rs, T.exec("some select...")); // pqxx::result rs =
> T.exec(""some select...");
> ---
>
> pqxx is namespace for postgresql c++ binding. I have registered
> pqxx::result with
> BOOST_TYPEOF_REGISTER_TYPE (pqxx::result)

Is "pqxx::result" the exact type the expression T.exec("some select...")
returns? Can you do:

pqxx::result r;
BOOST_AUTO(rr, r);

?

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