Hey!
I've got a class with a private bool isScanning, and I'm trying to set it to false when initializing it in the class:
I feel so stupid for not knowing why, but why would GCC give me:Code:class blah { public: function1(); function2(); private: bool isScanning = false; };
I could have sworn you were allowed to set a value for variables in classes, no? I know I've done it in the past...ISO C++ forbids initialization of member `isScanning'
Thanks!
FlyingIsFun1217