Author Topic: wxObjArray or std library?  (Read 5279 times)

Offline ouch

  • Almost regular
  • **
  • Posts: 223
wxObjArray or std library?
« on: December 29, 2013, 01:51:58 pm »
I'm revamping the virtual targets dialog similar to what I did for the re-order one. In fact I added a re-order button on the virtual targets dialog, but I'm at the point where I need to apply the changes to the project. I come to the conclusion that the fastest way to do this is to store all the virtual targets and their data into a multidimensional array, then wipe all the data, and re-create it in the right order.

So to create that multidimensional array I'm either going to have to use wxObjArray or the standard library. I was wondering what the codeblocks team preference is on the matter.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: wxObjArray or std library?
« Reply #1 on: December 29, 2013, 02:05:06 pm »
I was wondering what the codeblocks team preference is on the matter.
Non specific. If you intend to change the core, STL would be fine on a long-term perspective.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline ouch

  • Almost regular
  • **
  • Posts: 223
Re: wxObjArray or std library?
« Reply #2 on: December 29, 2013, 03:33:22 pm »
heh, Just noticed that the std lib is used to create the multidimensional array that the virtual targets are stored in internally... And that it's created and stored with std::map... So no re-ordering of the virtual targets is even possible in the first place... :(