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.
nandakishore
Experienced Solver
Experienced Solver
Posts: 57
Joined: Wed Feb 25, 2015 2:09 pm
Location: Chennai, India

Wxwidgets

Post by nandakishore »

how to convert std::vector to wxVector??
thanks in adavance
User avatar
doublemax
Moderator
Moderator
Posts: 19164
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Wxwidgets

Post by doublemax »

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: 1355
Joined: Sun Aug 29, 2004 7:14 pm
Location: Salt Lake City, Utah, USA

Re: Wxwidgets

Post by tierra »

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.