Here is the example
int a = 5;
int c(5);
I hope the syntax highlighting works for you, if not then the way a
and c
are highlighted is different, shouldn't they be highlighted the same way?
c
has the same highlighting as a function would have (bright orange)
whereas a
has no highlight.
int a = 5; int c{5};
is really the correct way to do it. Parens have been obsolete for some time. \$\endgroup\$ – pacmaninbw Oct 20 '20 at 16:53()
when creating objects and calling the constructor. \$\endgroup\$ – Aryan Parekh Oct 20 '20 at 16:58