Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

C99 and C++ aren't compatible, unfortunately.

For example, C99 designated initialisers aren't in C++ at all, which is a shame as they're fantastically useful:

    struct foo {
      int i;
      double j;
    };

    struct foo f = { .j=9.1, i=4 };
See http://stackoverflow.com/questions/18731707/why-does-c11-not....


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: