I use MSVC++ 2005 x64.
Some code work incorrectly in release optimizing mode.
So, I want to make test for that code.
Problem is, my test code run only in debug mode.
(I dont’ want mix test code in product code.)
So, Can I declare some part of code to compile as release optimizing mode in debug build?
For example, like, __asm … or something…
__build_start(Release)
int x = 0;
.. do something ..
__build_end(Release)
Thanks in advance.
You can do it at a file level, if that helps. Right click on the file in solution explorer -> properties -> c++ -> optimisation, then set the optimisation level for that file.