Boost logo

Boost :

From: Peder Holt (peder.holt_at_[hidden])
Date: 2007-08-20 05:31:13


2007/8/20, Goran Mitrovic <gmit_at_[hidden]>:
> Hello.
>
> This won't be a proper review of the library, but more a point of view of
> an average Boost user.
>
>
> ScopeExit seems like a very nice utility, but, I don't think I could ever
> use it because of two things:
>
> 1. Dependence on boost.typeof. I would like the native typeof keyword,
> but, boost.typeof too much stresses compile type and a requirement of type
> registration is so unergonomic that makes boost.typeof a very nice and
> powerful demo, but not a useful utility for every day use.

BOOST_TYPEOF reverts to native typeof on all compilers that support
it. In addition, BOOST_TYPEOF is supported 'natively' on all VC
compilers (ranging from VC6.0 to VC8.0), by utilizing a bug in the
compiler. No registration is needed if you only target these
platforms, and the compile time overhead on these compilers is
negligible.

Regards,
Peder

>
> 2. Unusual syntax, both for me and someone who would later work on my
> code. Using preprocessor sequence and having BOOST_SCOPE_EXIT_END after {}
> braces looks so unnatural in C++.
>
>
> If, by any chance, my vote will be counted, I'll vote no for this utility
> until those two items are resolved. I understand maybe it's not possible
> to do so, but, I would rather not have it in Boost then.
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk