From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2005-12-21 09:00:51


Richard Jennings wrote:

>(ii) My compiler does not like the use of 'typename' in the body of
>test_enum and test_bitfield, eg in test_enum
>test_parse(first.str(), typename T::optional(first));
>becomes:
>test_parse(first.str(), T::optional(first));
>I can't say which is the correct syntax or if the version without typename
>works for other compilers.
>
>
No, it won't. typename should be replaced by BOOST_DEDUCED_TYPENAME,
which expands to typename on compilers that require it, and nothing
where they reject it.

Sebastian Redl