Re: Polyspace Problem



Al Balmer <albalmer@xxxxxxx> writes:
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"

STL being the C++ Standard Template Library.

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.

Yes, but an STL implementation in C would not be part of the C
implementation.

Hmm, I don't *think* it would be. A library that's not part of the
standard C library, but that is perhaps integrated along with the
stuff that is required by the standard, is in a twilight zone between
the implementation and user code.

--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
.



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: some class for datetime
    ... Not in STL, but in standard C library. ... See time_t, struct tm, mktime et ...
    (microsoft.public.vc.stl)
  • Re: Polyspace Problem
    ... struct __type_traits{ ... Get rid of the leading underscores. ... Sad to say, the OP claims to *be* an implementer: ... "Actually the code is a extract of STL that is designed by us" ...
    (comp.lang.c)
  • Re: STL and Visual C++ .net conflicts
    ... Remove all of the old STL headers from the project. ... >'struct' type redefinition ... part of the standard library and shouldn't be included in your project ...
    (comp.lang.cpp)
  • Re: Kann hier auch zum Thema c++ gefragt werden ?
    ... Gemeint war die STL = Standard Lib, sorry, Info: ... one can now push and pop integers onto this stack. ... In Java hat ist man übrigens von einigen zentralen Klassen, ...
    (de.comp.lang.c)