
21 Dec
2005
21 Dec
'05
2 p.m.
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