| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I have a .cpp file but I would like to use the C99 named initialization for structs syntax, can I do that?
struct A sa = {.a = 1,.b = 2.3, .c = 'd'};
the compiler generates "expected primary-expression before '.' token.
I think you're expecting c99 features from the c++ compiler. This should
work with gcc, and fail with g++ as far as I can tell.
pete
_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.