hi,
im having trouble to solve this error. i built a header file like this;
#ifndef CONTROL_H
#define CONTROL_H
#include "includes.h"
class Control {
public:
private:
bool g_Keys[128] = {false};
};
#endif
its very simple: its a class that have an array of array of boolean. those
syntax supposed to create a 128 length boolean array with all value set to
false. but i seem to have these errors:
error: a brace-enclosed initializer is not allowed here before '{' token
error: ISO C++ forbids initialization of member 'g_Keys'
error: making 'g_Keys' static
error: invalid in-class initialization of static data member of non-integral
type 'bool [128]'
did i miss anything?
thanks in advance :)