I'm somewhat new to C++, only having written some smallish C++ programs.
Currently I'm having a bit of a syntax issue:
I'm trying to design a virtual CPU, and I'd to have 16 index-able bitsets of 32 bits each for use as simulated registers.
After searching the net and this forum, I came across this, which looks like what I want:
typedef vector<bitset<32> > regSet;
regSet registers;
The problem arises when I try something like this:
bitset<32> bitsettest (43);
registers.push_back(bitsettest);
I get this error:
error: expected constructor, destructor, or type conversion before '.' token
I'm almost positive I'm doing this wrong because I'm not understanding some concept properly. Any tips? I'm using GCC+MinGW and not MSVC if that applies here.