Skip to content

Instantly share code, notes, and snippets.

@komiga
Created April 22, 2012 21:02
Show Gist options
  • Save komiga/2466902 to your computer and use it in GitHub Desktop.
Save komiga/2466902 to your computer and use it in GitHub Desktop.
struct blah {
blah()
: a(0) // error: uninitialized member ‘blah::<anonymous union>::b’ with ‘const’ type ‘const float’
//, b(0.0f) // error: initializations for multiple members of ‘blah::<anonymous union>’
{}
union {
int const a;
float const b;
};
};
int main(int argc, char const* argv[]) {
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment