I'm wondering how I would go about using a variable to set the size of a bitset. For example,
// obtain file size:
fseek (rFile , 0 , SEEK_END);
numberOfBytes = ftell (rFile);
rewind (rFile);
const unsigned long long buffSize = numberOfBytes * 8;
std::bitset<buffSize> buffer;
I get a error message saying that the value of buffSize is unusable in a constant expression. I'm looking for a way to set the bitset to the size of whatever file I'm currently reading.