Z
zacariaz
The subject isnt very clear, but ill do my best to explain.
In a class in need a bitset which size is defined by the constructor,
e.g. something like this:
class Example {
std::bitset<?>Bs;
public:
Example(int input) {
? = input;
}
};
Now, my knowledge in c++ is simply to limited to work around this. I
know that in order to use a variable to initialize a bitset, it has to
be constant, but allso the constant variable has to be initialized
imidiadly, and ofcourse it all has to be done in the right order,
otherwise nothing will make sence or work for that matter. Im confused
and i hope you canhelp.
Regards
In a class in need a bitset which size is defined by the constructor,
e.g. something like this:
class Example {
std::bitset<?>Bs;
public:
Example(int input) {
? = input;
}
};
Now, my knowledge in c++ is simply to limited to work around this. I
know that in order to use a variable to initialize a bitset, it has to
be constant, but allso the constant variable has to be initialized
imidiadly, and ofcourse it all has to be done in the right order,
otherwise nothing will make sence or work for that matter. Im confused
and i hope you canhelp.
Regards