
"Alexander Nasonov" wrote:
It is dog-slow: the small example takes over minute!!!! on Athlone XP 2200+ (no optimisations enabled).
Intel is known for being slow on heavy templatized code and its preprocessor processing is exponential.
Unless you passed a lot of variables to BOOST_FINALLY_BEGIN, it's not PP, it is Boost.Typeof that is very slow.
I tried dozens of BOOST_FINALLYs in one TU and the compilation time stays the same (the minute). So it is not PP.
Mr. Alexandrescu had suggested something like that to be included in the language (as a killer feature not seen in mainstream languages). Specifically, he suggested:
on_block_exit { .... code .... } on_block_success { ... code ... } on_block_failure { ... code ... }
Cool, I didn't know this. Is there any proposal for this?
This c.l.c++.m thread http://groups.google.com/group/comp.lang.c++.moderated/tree/browse_frm/threa... or http://tinyurl.com/outps He had characterised it as "nice research topic ;-)" and I guess no one had dared to propose it for standardisation. /Pavel