Re: Polyspace Problem
- From: jt@xxxxxxxxxxx (Jens Thoms Toerring)
- Date: 28 Feb 2007 16:16:26 GMT
hyderabadblues <sirishkumar@xxxxxxxxx> wrote:
But actual code looks comething like this
struct __true_type{
};
struct __false_type{
};
struct __state_type{
};
struct __type_traits{
typedef __true_type _h;
typedef __false_type _h;
typedef __state_type _h;
};
Why would you make a typedef part of structure? That looks rather
strange, to say the least, and definitely nothing I would assume
a compiler to let me get away with. And even if that would be
possible why would you give all three the same name ('_h')?
When I compiled the above code I got three errors,
__true_type isn't defined
__false_type isn't defined
__state_type isn't defined
but after changing the code to
struct __type_traits{
typedef struct __true_type _h;
typedef __false_type _h;
typedef __state_type _h;
};
There are no errors. Why is this
You either have totally confused your compiler or you're not
posting your real code.
Regards, Jens
--
\ Jens Thoms Toerring ___ jt@xxxxxxxxxxx
\__________________________ http://toerring.de
.
- References:
- Polyspace Problem
- From: hyderabadblues
- Re: Polyspace Problem
- From: Beej Jorgensen
- Re: Polyspace Problem
- From: hyderabadblues
- Polyspace Problem
- Prev by Date: Re: How To Implement Timer in C
- Next by Date: Re: Polyspace Problem
- Previous by thread: Re: Polyspace Problem
- Next by thread: Re: Polyspace Problem
- Index(es):
Relevant Pages
|