Internal Compiler Error

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Mon Feb 28 23:07:00 GMT 2000


> I am sorry!  This is my first time reporting a bug...

Thanks again for your bug report. The mainline compiler (2.96 20000223
(experimental)) says

CellularAutomata.h:26: no matching function for call to
CellularAutomata.h:26: `insert_iterator<vector<bool, allocator<bool> >
CellularAutomata.h:26: >::insert_iterator (vector<bool, allocator<bool>
CellularAutomata.h:26: > *&, _Bit_iterator)'

so the bug has been fixed. It is also a bug in your code, you need to
write

	void SetState(const vector<T>* newState)
	{
		state->clear();
		insert_iterator< vector<T> > ii(*state, state->begin());
		copy(newState->begin(), newState->end(), state->begin());
		// Notify observers whenever state is changed
	}

Regards,
Martin



More information about the Gcc-bugs mailing list