Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: medved on August 03, 2011, 03:26:03 am

Title: Allow custom location of attributes in Class?
Post by: medved on August 03, 2011, 03:26:03 am
In C++, I need to be able to pick the order my variables show up in my class definition file.  For example, I might decalare a static const int and then use it to size another member later.

Code: [Select]
private:
static const int FRAME_BUFFER_SIZE = 20;
tPvFrame   _frames[FRAME_BUFFER_SIZE];

So if EA decides to generate _frames first, it will not compile.  I ticked the "Tools->Options->Allow Free Sorting" but this doesn't seem to apply to Attributes.  Any ideas?