Re: Polyspace Problem



On Wed, 28 Feb 2007 11:55:29 -0800, Keith Thompson <kst-u@xxxxxxx>
wrote:

"hyderabadblues" <sirishkumar@xxxxxxxxx> writes:
When I compile the following code I am getting the error as
__true_type undefined


struct __true_type{
};

struct __type_traits{

typedef __true_type _h;
};

Get rid of the leading underscores. Identifiers starting with an
underscore are reserved to the implementation.

Sad to say, the OP claims to *be* an implementer:

"Actually the code is a extract of STL that is designed by us"

I'm quite interested in the outcome of a project which is apparently
trying to implement the C++ STL in C. It must be a challenge.

--
Al Balmer
Sun City, AZ
.



Relevant Pages

  • Re: Polyspace Problem
    ... struct __type_traits{ ... Get rid of the leading underscores. ... STL being the C++ Standard Template Library. ...
    (comp.lang.c)
  • Re: Polyspace Problem
    ... struct __type_traits{ ... Get rid of the leading underscores. ... STL being the C++ Standard Template Library. ...
    (comp.lang.c)
  • STL and Visual C++ .net conflicts
    ... The main part of them seems to be due to the stl library. ... 'struct' type redefinition ...
    (comp.lang.cpp)
  • Re: Polyspace Problem
    ... struct __type_traits{ ... Get rid of the leading underscores. ... compiler is being invoked as a C compiler so it catches these ... declaration are member declarations. ...
    (comp.lang.c)
  • Re: STL alternatives?
    ... > I just know that the STL does inspire fear and loathing in the uninitiated. ... struct iterator_thing: reference_countable ... > minimal comlexity. ... assertions of minimal complexity? ...
    (comp.lang.cpp)