Skip to content

Instantly share code, notes, and snippets.

@sbrocket
Created October 21, 2008 20:35
Show Gist options
  • Save sbrocket/18420 to your computer and use it in GitHub Desktop.
Save sbrocket/18420 to your computer and use it in GitHub Desktop.
typedef std::vector<std::vector<char> > charGrid;
charGrid *newGrid = new charGrid();
newGrid[0][0] = ' ';
// error: no match for 'operator=' in 'newGrid-> std::vector<_Tp, _Alloc>::operator[] [with _Tp = std::vector<char, std::allocator<char> >, _Alloc = std::allocator<std::vector<char, std::allocator<char> > >](0ul) = ' ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment