H
Honestmath
Hi,
I added the following line to my code within a class declaration:
std::vector<Date> m_duedates(100);
I also tried:
std::vector<Date> m_duedates(100, Date());
My program compiles and runs fine without this line, but with it (the first
style above) I get the error:
error C2059: syntax error : 'constant'
Date is a class with a default constructor Date()
The help didn't help explain the cause of this error. Any ideas??
I was just going to use an array of type Date but the compile kept throwing up
on that too.
Thanks!
Math
I added the following line to my code within a class declaration:
std::vector<Date> m_duedates(100);
I also tried:
std::vector<Date> m_duedates(100, Date());
My program compiles and runs fine without this line, but with it (the first
style above) I get the error:
error C2059: syntax error : 'constant'
Date is a class with a default constructor Date()
The help didn't help explain the cause of this error. Any ideas??
I was just going to use an array of type Date but the compile kept throwing up
on that too.
Thanks!
Math