top | item 43775923 (no title) MrRadar | 10 months ago That's C++11 syntax. Before then you'd have to manually initialize them in every constructor, with a hand-written default constructor as a minimum: struct test { int my_int; int *my_ptr; test() : my_int(0), my_ptr(NULL) {} }; discuss order hn newest No comments yet.
No comments yet.