Of course now I want to use a Macro to fill in the boiler plate code. #define LogMyError(x) LogError(std::operator""sv(x, 11UL), std::source_location::current(__buildin_source_location())) LogMyError("Just a test);
@@andreas_fertig Then I was confused at 4:50 or so where you used it. The define is to avoid the extra typing or copy/pasting of lines 14, 15 of the same code in your right side window.
I didn't know that trick or tool, now I do thank you!
NIce
Of course now I want to use a Macro to fill in the boiler plate code.
#define LogMyError(x) LogError(std::operator""sv(x, 11UL), std::source_location::current(__buildin_source_location()))
LogMyError("Just a test);
Sarcasm?
I don't get why you would want to use a macro and why use __builtin_source_location() in ::current. The compiler does that for you already.
@@andreas_fertig Then I was confused at 4:50 or so where you used it. The define is to avoid the extra typing or copy/pasting of lines 14, 15 of the same code in your right side window.
@@garyp.7501 You don't need to do that. The right side shows what the compiler makes of it behind the scenes.
Video voice quality is not good.
Sorry about that!
so lets earn him a $5000 mic!