A bit of a tangent: Why on earth would one do such a thing? Why not just declaring the alignment explicitly through inheritance?
struct Id { Commands::Type id; };
struct Foo : Id { int value; };
edit: Good to see that gamedevs forum software still excels at exploding from even basic usage. Should be readable now.
edit: Oh, editing posts does not work either ... at least the changes seem to show up when reloading the page.
Show differencesHistory of post edits
#3tanzanite7
Posted 01 January 2013 - 06:38 PM
A bit of a tangent: Why on earth would one do such a thing? Why not just declaring the alignment explicitly through inheritance?
struct Id { Commands::Type id; };
struct Foo : Id { int value; };
edit: Good to see that gamedevs forum software still excels at exploding from even basic usage. Should be readable now.
struct Id { Commands::Type id; };
struct Foo : Id { int value; };
edit: Good to see that gamedevs forum software still excels at exploding from even basic usage. Should be readable now.
#2tanzanite7
Posted 01 January 2013 - 06:38 PM
A bit of a tangent: Why on earth would one do such a thing? Why not just declaring the alignment explicitly through inheritance?
struct Id { Commands::Type id; };
struct Foo : Id { int value; };
edit: Good to see that gamedevs forum software still excels at exploding from even basic usage. Should be readable now.
struct Id { Commands::Type id; };
struct Foo : Id { int value; };
edit: Good to see that gamedevs forum software still excels at exploding from even basic usage. Should be readable now.
#1tanzanite7
Posted 01 January 2013 - 06:36 PM
A bit of a tangent: Why on earth would one do such a thing? Why not just declaring the alignment explicitly through inheritance?<br /><pre class="_prettyXprint _lang-code _linenums:NaN">
struct Id { Commands::Type id; };
struct Foo : Id { int value; };</pre><pre class="_prettyXprint _lang-code _linenums:NaN"><br /><br />etc ...</pre>
struct Id { Commands::Type id; };
struct Foo : Id { int value; };</pre><pre class="_prettyXprint _lang-code _linenums:NaN"><br /><br />etc ...</pre>