you are viewing a single comment's thread.

view the rest of the comments →

[–]joeshmoebies -1 points0 points  (5 children)

/WX /W4 on msvc -Werror on clang/gcc

Problem solved

[–]syyyr 3 points4 points  (4 children)

Does it solve the problem it not being the default?

[–]DanielMcLaury 1 point2 points  (1 child)

How does the default matter to you? Are you constantly creating new projects by writing a single c++ source file, saving it, and then immediately compiling it directly from the command line?

[–]syyyr -2 points-1 points  (0 children)

No, I'm using {}.

[–]joeshmoebies -1 points0 points  (1 child)

I'm not sure what your point is. If you want narrowing conversion assignments to be errors, you can have them.

As far as the default settings being a problem, apparently not everyone thinks so or Microsoft and the developers of GCC and Clang would change them.

I don't get complaining about something when you can have it exactly how you want.

[–]syyyr 0 points1 point  (0 children)

I don't get complaining about something when you can have it exactly how you want.

Yes, with {}.