-
-
Save DevO2012/e3e1f011b890e0ae7ff6 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
class Value | |
{ | |
public: | |
Value() { printf(" Value \n"); } | |
~Value() { printf("~Value \n"); } | |
}; | |
class Optional | |
{ | |
public: | |
Optional() {} | |
~Optional() {} | |
private: | |
union { | |
Value m_value; ///< should be uninitialized ! But Intel Compiler will call Constructor and Destructor here! | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment