Hi,
[this is a repost from my incorrect posting in fltk.development]

I want to create several instances of my little app.
Trying to use a vector, my compiler had issues.  Looking around the net, 
wikipedia has it that:

"The vector template can be instantiated with any type that fulfills the 
CopyConstructible and Assignable requirements"

There is no copy constructor for Fl_Window, I think.

I tried to knock one up for my class that inherits from Fl_window but did not 
get very far.

For those who actually know what they are doing, this may not be too difficult. 
 Please help.
..

regards,
pawel


[Ian responded...]

---
On 24 Jun 2010, at 21:46, pawel wrote:

> I want to create several instances of my little app.
> Trying to use a vector, my compiler had issues.  Looking around the
> net, wikipedia has it that:

OK - you may have to clarify what you are trying to do.

A vector seems like overkill for this, can you not just make an array
of Fl_Window* and be done with it? Or even a simple list of
Fl_Window* would do... But probably I have just not understood what
you are trying to achieve, so...
---

I want to ahve any number of instances of an app.

I can use an array (and am using one for now) but a vector or list would be 
better (given the dynamic resizing allowed by those).  A list also requires a 
copy constructor however.

If someone has programmed in a copy constructor for FL_Window, or can advise 
how to, then I'd love to know.  Otherwise any advice on how to have multiple 
instances of an app class (that inherits from Fl_Window) would be good.

thanks,
pawel


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to