Been up to some compile-time stuff with C++ and noticed that MSVC loves leaving global c-strings in read-only EVEN if they were used ONLY for compile-time ops.
Templates force you to have them global in order to use them. This is with optimizations on. Attached image of it not referencing anywhere.
November 23, 2024 at 6:38 PM
Been up to some compile-time stuff with C++ and noticed that MSVC loves leaving global c-strings in read-only EVEN if they were used ONLY for compile-time ops.
Templates force you to have them global in order to use them. This is with optimizations on. Attached image of it not referencing anywhere.