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

MOSS Sebastian Sebastian.MOSS at murex.com
Thu Jun 7 09:34:14 EDT 2007


Apologies - I forgot the attachment.

Thanks again,
s

-----Original Message-----
From: Brad King [mailto:brad.king at kitware.com] 
Sent: Wednesday, June 06, 2007 7:42 PM
To: MOSS Sebastian
Cc: gccxml at gccxml.org
Subject: Re: [GCC-XML] compilation pb running gccxml on code using
SFINAE

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 
 
*******************************
This e-mail contains information for the intended recipient only.  It may contain proprietary material or confidential information.  If you are not the intended recipient you are not authorised to distribute, copy or use this e-mail or any attachment to it. Murex cannot guarantee that it is virus free and accepts no responsibility for any loss or damage arising from its use.  If you have received this e-mail in error please notify immediately the sender and delete the original email received, any attachments and all copies from your system.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tar.gz
Type: application/x-gzip
Size: 708 bytes
Desc: test.tar.gz
URL: <http://public.kitware.com/pipermail/gccxml/attachments/20070607/a6c1b950/attachment.bin>


More information about the gccxml mailing list