0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-27 00:31:02 +08:00

(profiler_core) Fixed logic mistake in base api

This commit is contained in:
Victor Zarubkin 2016-08-30 20:46:39 +03:00
parent 61c40c2512
commit eaa79a4c4c

View File

@ -38,13 +38,13 @@ along with this program.If not, see <http://www.gnu.org/licenses/>.
namespace profiler {
template <bool IS_REF> 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<true> 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.