[GCC-XML] compilation pb running gccxml on code using SFINAE

Brad King brad.king at kitware.com
Wed Jun 6 19:41:52 EDT 2007


MOSS Sebastian wrote:
> Although - as I said after trying this originally - then the value
> member can't be used as a template argument:
[snip]
> template <typename T, bool has_nested_value_type = true>
> struct register_nested_type
> {
>     typedef typename register_nested_type< typename T::value_type,
> has_nested_value_type<typename T::value_type>::value >::value_type
> value_type; 
> };
> 
> template <typename T>
> struct register_nested_type<T, false>
> {
>     // dumb typedef for termination
>     typedef T value_type;
> };
> 
> Again, this compiles on gcc 3.4 (and not gcc 3.3 or gccxml). Can you
> suggest a workaround for this?

Please send me a complete example that I can try compiling.

Thanks,
-Brad



More information about the gccxml mailing list