Skip to content

Commit

Permalink
Fix issue with undefined methods in EDM4hep to LCIO conversion (#84)
Browse files Browse the repository at this point in the history
* Force evaluation at compile time to avoid linker issues

* Make sure to define all necessary overloads
  • Loading branch information
tmadlener authored Jul 25, 2024
1 parent 04850a2 commit 7ef18e3
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -817,11 +817,15 @@ 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; \
} \
template <> \
consteval const char* getTypeName<EVENT::type>() { \
return #type; \
}

Expand Down

0 comments on commit 7ef18e3

Please sign in to comment.