Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: ouch on December 29, 2013, 01:51:58 pm

Title: wxObjArray or std library?
Post by: ouch 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.
Title: Re: wxObjArray or std library?
Post by: MortenMacFly 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.
Title: Re: wxObjArray or std library?
Post by: ouch 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... :(