Skip to content
Snippets Groups Projects
Commit 35d9dd9d authored by scott snyder's avatar scott snyder Committed by scott snyder
Browse files

xAODTrigger: Fix compilation failure with clang.

operator<< should be declared within the namespace of its argument
so that argument-dependent lookup will work properly.
parent 1515629d
No related branches found
No related tags found
No related merge requests found
...@@ -278,7 +278,6 @@ namespace xAOD { ...@@ -278,7 +278,6 @@ namespace xAOD {
// //
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
} // namespace xAOD
std::ostream& operator<<(std::ostream& os, const xAOD::TrigComposite_v1& tc) { std::ostream& operator<<(std::ostream& os, const xAOD::TrigComposite_v1& tc) {
os << "TrigComposite_v1 '" << tc.name() << "' link: name, key, index, CLID" << std::endl; os << "TrigComposite_v1 '" << tc.name() << "' link: name, key, index, CLID" << std::endl;
...@@ -290,3 +289,5 @@ std::ostream& operator<<(std::ostream& os, const xAOD::TrigComposite_v1& tc) { ...@@ -290,3 +289,5 @@ std::ostream& operator<<(std::ostream& os, const xAOD::TrigComposite_v1& tc) {
} }
return os; return os;
} }
} // namespace xAOD
// Dear emacs, this is -*- c++ -*- // Dear emacs, this is -*- c++ -*-
/* /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/ */
// $Id: TrigComposite_v1.h 784388 2016-11-15 17:08:58Z tamartin $ // $Id: TrigComposite_v1.h 784388 2016-11-15 17:08:58Z tamartin $
...@@ -183,15 +183,15 @@ namespace xAOD { ...@@ -183,15 +183,15 @@ namespace xAOD {
}; // class TrigComposite_v1 }; // class TrigComposite_v1
} // namespace xAOD
// Include the template implementation:
#include "TrigComposite_v1.icc"
/** /**
* @brief print helper for TrigComposite * @brief print helper for TrigComposite
*/ */
std::ostream& operator<<(std::ostream& os, const xAOD::TrigComposite_v1& tc); std::ostream& operator<<(std::ostream& os, const xAOD::TrigComposite_v1& tc);
} // namespace xAOD
// Include the template implementation:
#include "TrigComposite_v1.icc"
#endif // XAODTRIGGER_VERSIONS_TRIGCOMPOSITE_V1_H #endif // XAODTRIGGER_VERSIONS_TRIGCOMPOSITE_V1_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment