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 8:14:21 PM Subject: Re: [Boost-users] fatal error C1001 with visual studio 8, boost 1.34, BOOST_AUTO() macro "Trigve Siver"
wrote typedef BOOST_TYPEOF(T.exec("SELECT 1")) type;
typedef BOOST_TYPEOF(T.exec("SELECT 1")) type; // OK
Now I am really confused...
What about:
BOOST_TYPEOF(T.exec("SELECT 1")) r = T.exec("SELECT 1");
Hi, this one is fatal error BOOST_TYPEOF(T.exec("SELECT 1")) r = T.exec("SELECT 1"); // fatal error --- ------ Rebuild All started: Project: test_boost_auto, Configuration: Debug Win32 ------ Deleting intermediate and output files for project 'test_boost_auto', configuration 'Debug|Win32' Compiling... stdafx.cpp using typeof emulation Compiling... test_boost_auto.cpp d:\temp\delete\test_boost_auto\test_boost_auto.cpp(16) : 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 Build log was saved at "file://d:\Temp\DELETE\test_boost_auto\Debug\BuildLog.htm" test_boost_auto - 1 error(s), 0 warning(s) ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== --- also this: --- typedef BOOST_TYPEOF(T.exec("SELECT 1")) type; // OK type rs; // fatal error ---
?
Regards, Arkadiy
Thanks Trigve ____________________________________________________________________________________ Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121
"Trigve Siver"
--- typedef BOOST_TYPEOF(T.exec("SELECT 1")) type; // OK type rs; // fatal error ---
So, it seems to be able to deduce the type, but can't use it? I've never
seen anything like this... Is it possible to get the name of the type:
#include
participants (2)
-
Arkadiy Vertleyb
-
Trigve Siver