Skip to content

Commit

Permalink
JFactoryT constructor accepts tag argument again
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwbrei committed Nov 28, 2024
1 parent e6da892 commit 88dd8b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libraries/JANA/JFactoryT.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class JFactoryT : public JFactory {
using IteratorType = typename std::vector<T*>::const_iterator;
using PairType = std::pair<IteratorType, IteratorType>;

JFactoryT() : JFactory(JTypeInfo::demangle<T>(), ""){
JFactoryT(std::string tag="") : JFactory(JTypeInfo::demangle<T>(), tag){
EnableGetAs<T>();
EnableGetAs<JObject>( std::is_convertible<T,JObject>() ); // Automatically add JObject if this can be converted to it
#if JANA2_HAVE_ROOT
Expand Down

0 comments on commit 88dd8b6

Please sign in to comment.