Skip to content

Commit

Permalink
Force evaluation at compile time to avoid linker issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Jul 25, 2024
1 parent 04850a2 commit e417895
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -817,11 +817,11 @@ std::vector<std::tuple<std::string, std::unique_ptr<lcio::LCCollection>>> create

namespace detail {
template <typename T>
constexpr const char* getTypeName();
consteval const char* getTypeName();

#define DEFINE_TYPE_NAME(type) \
template <> \
constexpr const char* getTypeName<IMPL::type##Impl>() { \
consteval const char* getTypeName<IMPL::type##Impl>() { \
return #type; \
}

Expand Down

0 comments on commit e417895

Please sign in to comment.