https://github.com/root-project/root
Revision 61d0801024ded9d79961829ff2d4069c551d8389 authored by Axel Naumann on 02 September 2019, 12:58:11 UTC, committed by Axel Naumann on 29 January 2020, 14:08:43 UTC
Some Pythia8 headers expose an unfortunate "using namespace Pythia8".
This triggers:
In file included from /root/ship-log-keep/sw/slc7_x86-64/ROOT/master_FAIRSHIP-1/include/TMCManager.h:26:
/root/ship-log-keep/sw/slc7_x86-64/ROOT/master_FAIRSHIP-1/include/TMCParticleStatus.h:81:7: error: reference to 'Info' is ambiguous
      Info("Print", "Status of track");
      ^
/root/ship-log-keep/sw/BUILD/b61305e07edfb1f9a906335e2093ac409db3c4cc/ROOT/include/TError.h:58:13: note: candidate found by name lookup is 'Info'
extern void Info(const char *location, const char *msgfmt, ...)
            ^
/root/ship-log-keep/sw/slc7_x86-64/pythia/v8230-ship-1/include/Pythia8/Info.h:30:7: note: candidate found by name lookup is 'Pythia8::Info'
class Info {
      ^

By explicitly requesting "::Info" that ambiguity should be resolved.

(cherry picked from commit bba421940c2073430ac03126e8f41e334e014c36)
(got reverted by commit d90fc155397fd8bf986c03d36cd35f9f1a242b40)
1 parent 5d69a62
History
Tip revision: 61d0801024ded9d79961829ff2d4069c551d8389 authored by Axel Naumann on 02 September 2019, 12:58:11 UTC
[vmc] Re-apply: Disambiguate ROOT's ::Info from Pythia8's Info:
Tip revision: 61d0801

README.md

back to top