
10 Mar
2009
10 Mar
'09
9:40 a.m.
<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