Created
December 20, 2017 19:02
-
-
Save rivertam/c59699acb0a416ec2b3e0e690600702d to your computer and use it in GitHub Desktop.
Nice constructor style
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 Klass { | |
Klass(const Param & p1, const Param & p2) | |
: | |
m1(p1), | |
m2(p2) | |
{} | |
Param m1; | |
Param m2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment