Skip to content

Commit

Permalink
Add templated overload
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaponte committed Dec 14, 2023
1 parent c07906b commit 964a9d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nain4/src/n4-shape.hh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ struct shape {
shape& sensitive(G4SensDet* s) { sd = s; return *this; }
shape& vis(G4VisAttributes v) { va = v; return *this; }
shape& vis(G4VisAttributes* v) { return vis(*v); }
template<class... Args>
shape& vis(Args&&... args) { return vis(n4::vis_attributes{std::forward<Args>(args)...}); }
virtual ~shape() {}

// Boolean operations
Expand Down

0 comments on commit 964a9d7

Please sign in to comment.