C
cheeser
Hello,
I'm trying to size a vector of vectors of unsigned ints to be an NxN square.
Here's how I'm doing it:
typedef vector<vector<unsigned int> > tournament_type;
unsigned int n;
tournament_type tournament;
// Go get a value for n...
tournament.resize(n);
for_each(
tournament.begin(),
tournament.end(),
bind2nd(mem_fun1(&tournament_type::value_type::resize), n)
);
On the platform I'm on (VC++ 7.1), I get an internal compiler error. Before
I go over to the VC++ group, I'd like to make sure this code should indeed
compile. Can anybody see any syntactical or semantic errors that I have
made? Or is it OK, indicating a true compiler problem?
Thanks,
Dave
I'm trying to size a vector of vectors of unsigned ints to be an NxN square.
Here's how I'm doing it:
typedef vector<vector<unsigned int> > tournament_type;
unsigned int n;
tournament_type tournament;
// Go get a value for n...
tournament.resize(n);
for_each(
tournament.begin(),
tournament.end(),
bind2nd(mem_fun1(&tournament_type::value_type::resize), n)
);
On the platform I'm on (VC++ 7.1), I get an internal compiler error. Before
I go over to the VC++ group, I'd like to make sure this code should indeed
compile. Can anybody see any syntactical or semantic errors that I have
made? Or is it OK, indicating a true compiler problem?
Thanks,
Dave