Wxwidgets

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
nandakishore
Experienced Solver
Experienced Solver
Posts: 57
Joined: Wed Feb 25, 2015 2:09 pm
Location: Chennai, India

Wxwidgets

Post by nandakishore » Wed Feb 25, 2015 2:11 pm

how to convert std::vector to wxVector??
thanks in adavance

User avatar
doublemax
Moderator
Moderator
Posts: 14509
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Wxwidgets

Post by doublemax » Wed Feb 25, 2015 2:47 pm

What do you need this for?

If you already have code that uses std::vector, there is no need to switch to wxVector. And from the top of my head, i can't think of any wxWidgets method that takes wxVector as an argument.
Use the source, Luke!

User avatar
tierra
Site Admin
Site Admin
Posts: 1342
Joined: Sun Aug 29, 2004 7:14 pm
Location: Salt Lake City, Utah, USA
Contact:

Re: Wxwidgets

Post by tierra » Wed Feb 25, 2015 7:16 pm

Also, wxVector is compatible with the stl::vector interface, in fact, if wxWidgets is built in STL mode, it's just a typedef for std::vector. So if you have any local code that takes a wxVector, it should take very little to no changes in order to pass it a std::vector instead.

Post Reply