B
B
BonBon Slick2019-12-18 20:40:11
C++ / C#
BonBon Slick, 2019-12-18 20:40:11

Is it possible to disable auto-converting for parameters?

For several hours I was looking for a bug in the code, as it turned out, a very similar method was called that takes a bool value, and an int was passed. Because of this, a completely different behavior was obtained at the output of the application.
If VS 2019 even issued a warning, this could have been avoided. Perhaps there is an extension?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2019-12-18
@BonBonSlick

/Wall
https://docs.microsoft.com/ru-ru/cpp/build/referen...
by default there
/W3 displays level 1, level 2 and level 3 (production quality) warnings. /W3 is the default setting in the IDE.
And this
caught on/W4

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question