c++ - "Functions may not be part of a struct or union" when trying to use a constructor for a struct -
i wondering if compiler specific problem or not. i've seen examples of use of constructors struct in c++.
i have like:
struct example { example() { } };
i still compiler error "functions may not part of struct or union". using old borland 4.5 compiler (best not ask why...).
(and yes, done in c++).
i can't myself: why?
using compiler announces it's support windows 95 sort of interesting. c++ standard 1998, published before perhaps not date? :-)
other that, code ok.
Comments
Post a Comment