-
Hi, According to the documentation, enabling When the following code exists, the compiler complains about
Is it the expected behavior? meaning we still want the code being compiled so build fails if test code is not ok, and we rely on linker to remove all unused functions? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yeah, the code is still being compiled, but it is being turned into a template that is never instantiated. But should still be able to parse. If you want to remove it completely you should #ifdef it altogether just like the function foo |
Beta Was this translation helpful? Give feedback.
Yeah, the code is still being compiled, but it is being turned into a template that is never instantiated. But should still be able to parse. If you want to remove it completely you should #ifdef it altogether just like the function foo