You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UserTools/Factory/Factory.cpp:8:32: error: ‘WCSim_exe’ does not name a type; did you mean ‘WCSim_exe_H’?
if (tool=="WCSim_exe") ret=new WCSim_exe;
There's a couple of possible workarounds
adding the line
usingnamespaceHK::GHOST::G4;
modifying the line to add the namespaces explictly
if (tool=="WCSim_exe") ret=new HK::GHOST::WCSim_exe;
seems better to me, as it allows different namespaces to use the same tool name without clashing. The whole point of namespaces. Thoughts?
The other thing is that we need some clever & bulletproof way of extracting the Tool class namespace. I've not done much digging for such a tool, as someone may already have a solution 🤞
The text was updated successfully, but these errors were encountered:
Say I have a tool inside namespaces
HK::GHOST::WCSim_exe
After calling
ToolSelect.sh
and adding just that tool,Factory.cpp
looks like thisand we get errors upon
make
likeThere's a couple of possible workarounds
The other thing is that we need some clever & bulletproof way of extracting the Tool class namespace. I've not done much digging for such a tool, as someone may already have a solution 🤞
The text was updated successfully, but these errors were encountered: