Re: [boost] Getting rid of some warnings on gcc?

Beman Dawes wrote:
At 10:50 AM 2/3/2004, Marshall Clow wrote:
I've noticed that a bunch of the gcc tests (Mac OS, Linux, Windows) have many, many warnings, and they're all the same: ... So I tried adding "typename" in two spots. In the MacOS testing, it changed 30+ tests from "Warn" to "Pass". Here's the change:
diff -r1.23 token_functions.hpp 304c304 < tokenizer_detail::get_iterator_category< ---
typename tokenizer_detail::get_iterator_category<
396c396 < tokenizer_detail::get_iterator_category< ---
typename tokenizer_detail::get_iterator_category<
VC++ 6.0 fails with the added "typename", so it has to be placed in #if ... #endif. But, yes, the change does clear a lot of gcc warnings. The change seems so innocuous I went ahead and committed it to the CVS HEAD.
Doesn't BOOST_DEDUCED_TYPENAME fix the compatibility with VC++ 6? Regards, Reece _________________________________________________________________ Express yourself with cool emoticons - download MSN Messenger today! http://www.msn.co.uk/messenger

At 08:43 PM 2/3/2004, Reece Dunn wrote:
Doesn't BOOST_DEDUCED_TYPENAME fix the compatibility with VC++ 6?
The code already had some typename workarounds in place, so the new workarounds used the same form. BOOST_DEDUCED_TYPENAME would also have worked AFAIK. --Beman
participants (2)
-
Beman Dawes
-
Reece Dunn