diff --git a/include/profiler/profiler.h b/include/profiler/profiler.h index 31f1535..0d94583 100644 --- a/include/profiler/profiler.h +++ b/include/profiler/profiler.h @@ -38,13 +38,13 @@ along with this program.If not, see . namespace profiler { template struct NameSwitch final { - static const char* runtime_name(const char*) { return ""; } - static const char* compiletime_name(const char* name) { return name; } + static const char* runtime_name(const char* name) { return name; } + static const char* compiletime_name(const char*) { return ""; } }; template <> struct NameSwitch final { - static const char* runtime_name(const char* name) { return name; } - static const char* compiletime_name(const char*) { return ""; } + static const char* runtime_name(const char*) { return ""; } + static const char* compiletime_name(const char* name) { return name; } }; } // END of namespace profiler.