From 4f4bb61781aff18049fe92fbc26f184d589088b6 Mon Sep 17 00:00:00 2001 From: Peder Holt Date: Wed, 5 Sep 2007 19:52:18 +0000 Subject: [PATCH] boost.typeof now supports native typeof for VC8.0 [SVN r39131] --- doc/typeof.qbk | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/typeof.qbk b/doc/typeof.qbk index 548c505..31be5e7 100644 --- a/doc/typeof.qbk +++ b/doc/typeof.qbk @@ -644,12 +644,14 @@ that allows a nested class of base to be defined in a class derived from base: //Use the base class to access the type. typedef typeof_access::id2type::type type; -This method has also been adapted to VC7.0, where the nested class +Peder Holt adapted this method to VC7.0, where the nested class is a template class that is specialized in the derived class. -The loopholes have been fixed in VC8.0 though, so on this compiler -this method doesn't work. + +In VC8.0, it seemed that all the bug-featire had been fixed, but +Steven Watanabe managed to implement a more rigorous version of the VC7.0 fix that +enables 'typeof' to be supported 'natively' here as well. -For this and many other compilers neither native `typeof` support +For many other compilers neither native `typeof` support nor the trick described above is an option. For such compilers the emulation method is the only way of implementing `typeof`.