Created
April 22, 2012 21:02
-
-
Save komiga/2466902 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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