Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#Actualtanzanite7

Posted 01 January 2013 - 06:40 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.
edit: Oh, editing posts does not work either ... at least the changes seem to show up when reloading the page.

#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.

#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.

#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>

PARTNERS