On Fri, Jul 23, 2010 at 8:19 PM, Andrei Alexandrescu <[email protected]>wrote:
> Yup, found that and stole all I could from it. The nice thing about > scoped() is that it knows exactly the type it needs to destroy (the dynamic > type == the static type) so it doesn't need to access the ClassInfo etc. It > statically walks up the inheritance tree and destroys everything in sight. > Then it destroys that mutex thing. > > Thanks, > > Andrei > > Looks great. If you replaced that 'emplace' call with direct code to avoid the redundant size and alignment checks, it would be nearly perfect.
_______________________________________________ phobos mailing list [email protected] http://lists.puremagic.com/mailman/listinfo/phobos
