Boost logo

Boost :

From: Marshall Clow (marshall_at_[hidden])
Date: 2004-02-03 10:50:19


I've noticed that a bunch of the gcc tests (Mac OS, Linux, Windows)
have many, many
warnings, and they're all the same:

>/mnt/rh73/home/grafik/CVSROOTs/Boost/boost/boost/token_functions.hpp:305:
>warning: `
> typename
>
>boost::tokenizer_detail::get_iterator_category<Iterator>::iterator_category'
> is implicitly a typename

and

>/mnt/rh73/home/grafik/CVSROOTs/Boost/boost/boost/token_functions.hpp:397:
>warning: `
> typename
>
>boost::tokenizer_detail::get_iterator_category<InputIterator>::iterator_category
> ' is implicitly a typename

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<
-- 
-- Marshall
Marshall Clow     Idio Software   <mailto:marshall_at_[hidden]>
Hey! Who messed with my anti-paranoia shot?

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk