Use inclass initializers

Thu, 09 Feb 2017 20:26:15 +0100

author
David Demelier <markand@malikania.fr>
date
Thu, 09 Feb 2017 20:26:15 +0100
changeset 6
41dac98beeb2
parent 5
b8fe6bc8bb36
child 7
4fcd920b1a02

Use inclass initializers

STYLE_CPP.md file | annotate | diff | comparison | revisions
--- a/STYLE_CPP.md	Sun Feb 05 21:20:03 2017 +0100
+++ b/STYLE_CPP.md	Thu Feb 09 20:26:15 2017 +0100
@@ -301,8 +301,8 @@
 
     class point {
     public:
-        int x;
-        int y;
+        int x{0};
+        int y{0};
     };
 
 ### Return

mercurial