|
Boost : |
From: Bertrand Augereau (bertrand_at_[hidden])
Date: 2006-05-29 10:46:05
Argh...
The following snippet doesn't compile on MSVC8.0 if stdafx.h (the
precompiled header) includes "boost\typeof\typeof.hpp", and works if not...
(The project is otherwise a default-settings console app)
#include "stdafx.h"
#include "boost\typeof\typeof.hpp"
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
class Class {};
BOOST_TYPEOF_REGISTER_TYPE(Class)
int _tmain(int argc, _TCHAR* argv[]) { return 0; }
and it dumps these (quite meaningless) errors:
error C2143: syntax error : missing ';' before '<'
error C2059: syntax error : '<'
error C2065: 'V' : undeclared identifier
error C2143: syntax error : missing ';' before '{'
error C2447: '{' : missing function header (old-style formal list?)
error C2143: syntax error : missing ';' before '<'
error C2059: syntax error : '<'
error C2143: syntax error : missing ';' before '{'
error C2447: '{' : missing function header (old-style formal list?)
Maybe you can save me, once again, Arkadiy? :)
Cheers,
Bertrand
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk