Commit 1258d42
committed
Fixed style of example
While it's certainly nice that C++ allows you to not have {} to
encapsulate a function body if that body only consists of a single
statement (here: `try{…}`), it is not of any familiarity to C++ coders
to omit them.
Same goes for putting `main`'s argc/argv arguments on multiple lines.
Also, defining a macro PRIVATE_SOMETHING just to use it once one line of
code below is a bit of a strange thing to do.
So, I got rid of the macro and applied the clang-format style from
https://github.com/boost-experimental/vc1 parent 0f271ab commit 1258d42
1 file changed
+21
-43
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 22 | + | |
30 | 23 | | |
31 | 24 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
61 | 42 | | |
62 | 43 | | |
63 | 44 | | |
64 | 45 | | |
65 | | - | |
66 | | - | |
67 | | - | |
| 46 | + | |
68 | 47 | | |
69 | 48 | | |
70 | | - | |
71 | | - | |
72 | | - | |
| 49 | + | |
73 | 50 | | |
74 | 51 | | |
| 52 | + | |
75 | 53 | | |
0 commit comments