Boost logo

Boost Users :

From: Trigve Siver (trigves_at_[hidden])
Date: 2007-05-17 05:03:34


>----- Original Message ----
>From: Arkadiy Vertleyb <vertleyb_at_[hidden]>
>To: boost-users_at_[hidden]
>Sent: Wednesday, May 16, 2007 10:50:54 PM
>Subject: Re: [Boost-users] fatal error C1001 with visual studio 8, boost 1.34, BOOST_AUTO() macro
>
>"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)
>

Hi, thanks for reply,
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);
---
>Regards,
>Arkadiy
thanks
Trigve
       
____________________________________________________________________________________
Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games.
http://sims.yahoo.com/  

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