Created
April 27, 2018 07:25
-
-
Save deque-blog/5a01376ab998b15c86cb8eb0cccc6b9e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 MyClass | |
{ | |
public: | |
enum ContructionWay {ConstructThisWay, ConstructThatWay}; | |
explicit MyClass(ContructionWay); | |
// ... | |
}; | |
MyClass x(MyClass::ConstructThisWay); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment