Van's House

I'm a developer at C++ team. I'm interested in everything related to C++

March, 2010

  • Van's House

    VC's "evil" extension: Implicit definition of static constant member

    • 0 Comments
    C++ supports in-class initialization of static integral constant members. It is nearly the same as enum, with the following difference (quoted from C++03 9.4.2.4 ([class.static.data])): The member shall still be defined in a namespace scope if it is...
  • Van's House

    VC's "evil" extension: $

    • 2 Comments
    In C++, only a few characters can be used as part of the identifier. identifier: identifier-nondigit identifier identifier-nondigit identifier digit identifier-nondigit: nondigit universal-character-name other implementation-defined characters nondigit...
  • Van's House

    VC's "evil" extension: Pre-definition of basic types

    • 0 Comments
    In VC, you may find that you can use "size_t" directly without including any headers. size_t i = 0; int main() { atexit(0); } However, "size_t" is not a built-in type. It is a typedef in <stddef.h>. So what's the magic? In VC compiler, it...
Page 1 of 1 (3 items)