c++ - Braces After Initialization Lists -
class foo { foo(double initvalue): storeddouble(initvalue) { } double storeddouble; } is there syntax allow me skip out on curly braces after initialization list? know it's minor thing, i'd concise possible in code.
no, because foo( double initvalue ) method , methods must have opening , closing braces.
Comments
Post a Comment