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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -