Book a Demo

Author Topic: Allow custom location of attributes in Class?  (Read 1984 times)

medved

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Allow custom location of attributes in Class?
« 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?