Re: Two dimensional arrays?



On Thu, 2006-04-27 at 08:21 +0100, Alex Buell wrote:
> Hi!
> 
> I've been trying to create a two dimensional array of Gtk::Entry using
> std::vector< std::vector<type> >. This works well enough if I do the
> following:
> 
> Gtk::Entry m_Entry[9][9];
> 
> But if I do:
> 
> std::vector< std::vector<Gtk::Entry> > m_Entry;

You can't do this. gtkmm widgets don't have copy constructors, because
copy constructors would be meaningless.

You probably want to use std::vector<Gtk::Entry*>.

[snip]

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]