Skip to content

Commit

Permalink
check empty typename
Browse files Browse the repository at this point in the history
  • Loading branch information
maximyurchuk committed Jul 14, 2024
1 parent 04a8c8c commit ee0a666
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/system/type_name.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ TString TypeName(const std::type_index& typeInfo);
// (thus, does not take any inheritance into account)
template <class T>
inline TString TypeName() {
return TypeName(typeid(T));
return "foo";
}

// Works for dynamic type, including complex class hierarchies.
// Also, distinguishes between T, T*, T const*, T volatile*, T const volatile*,
// but not T and T const.
template <class T>
inline TString TypeName(const T& t) {
return TypeName(typeid(t));
return "foo";
}

0 comments on commit ee0a666

Please sign in to comment.