availability of "typeof" keyword

From: Arkadiy (vertleyb_at_hotmail.com)
Date: 09/28/05


Date: 28 Sep 2005 13:50:22 -0700

Hi All,

How does a user of HP aC++ determines whether the typeof (or
__typeof__) keyword is available? Is there any symbol defined that can
be tested?

For example Intel defines __GNUC__, and Comeau defines __GNUG__. These
symbols can be tested to decide whether or not typeof can be used. Is
there anything similar in HP aC++?

TIA.

Regards,
Arkadiy



Relevant Pages

  • Re: [PATCH/RFC] CodingStyle updates
    ... You could mention typeof too, which is a keyword but should be done like ... Hm, is that a gcc-ism? ... As long as is used in kernel code, ...
    (Linux-Kernel)
  • Re: isFunction (Code Worth Recommending Project)
    ... I did not suggest to avoid parentheses in a `typeof' ... operation altogether. ... that the `typeof' keyword be followed by space so as to indicate it is ...
    (comp.lang.javascript)
  • Re: GetType
    ... >> Well since this is VB.NET keyword, what would the equivalent be for C#? ... > look for typeof() in help... ... > Best Regards ...
    (microsoft.public.dotnet.languages.vb)
  • Re: [PATCH/RFC] CodingStyle updates
    ... You could mention typeof too, which is a keyword but should be done like sizeof. ... Are there other gcc-isms that I should add? ...
    (Linux-Kernel)
  • Re: Newbie: When to use typeof() function
    ... string is just a *keyword* that express a type. ... would need to use typeof(). ... the types at design time. ...
    (microsoft.public.dotnet.languages.csharp)