Skip to content

Commit 18a9cc5

Browse files
authored
Fix insertHist macro to use non-cstr key
1 parent c0e68a2 commit 18a9cc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ALICE3/TableProducer/OTF/onTheFlyTracker.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ using std::array;
6969
#define getHist(type, name) std::get<std::shared_ptr<type>>(histPointers[name])
7070
#define fillHist(type, name, ...) \
7171
std::get<std::shared_ptr<type>>(histPointers[name])->Fill(__VA_ARGS__);
72-
#define insertHist(name, ...) histPointers[(name).c_str()] = histos.add((name).c_str(), __VA_ARGS__);
72+
#define insertHist(name, ...) histPointers[name] = histos.add((name).c_str(), __VA_ARGS__);
7373

7474
struct OnTheFlyTracker {
7575
Produces<aod::Collisions> tableCollisions;

0 commit comments

Comments
 (0)