
I don't think the goal is being fast, although that would be a plus. As long as the two solutions don't differ in their uses, I don't care on the implementation, but ASM is not portable, and I better like a less easy to use but same interface on every platform. BOOST_SCOPE_EXIT { // ... } (msc-only) versus BOOST_SCOPE_EXIT( (hello)(world) ) { // ... } (on everything) is a clear choice for me. Hans On 6-Apr-07, at 3:11 PM, Andrey Semashev wrote:
Hello Alexander,
Friday, April 6, 2007, 11:00:51 PM, you wrote:
Alexander Nasonov wrote:
I reimplemented the macro and I see the problem but I already made up my mind: use portable solution when possible and rely on asm magic of __thread global on msvc. ^ or Sorry for the typo.
IMHO, asm much is better. __thread has problems in dll and besides, I suspect, is slower.
-- Best regards, Andrey mailto:andysem@mail.ru
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/ listinfo.cgi/boost