$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [scope_exit] Boost.ScopeExit capturing 'this'
From: Peder Holt (peder.holt_at_[hidden])
Date: 2009-03-10 05:40:01
>
> <snip>
>
> All is not lost though -- the general-purpose sizeof() based approach
> for the other VC versions works fine for VC71 for determining the
> typeof 'this'. As such my patch includes a VC>=1300 specific
> workaround for typeof 'this' determination. This is unfortunate but I
> couldn't think of any other non-intrusive way of doing it.
>
The reason for using typeid instead of sizeof was to remove a limitation of
the number of typeof instances you can have in a single compilation unit
(~1000),
but it should not not restricts the use of BOOST_TYPEOF, so I have reverted
the use of typeid for BOOST_TYPEOF on VC7.1.
It now uses the same sizeof solution as the other VC versions.
Regards
Peder