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

xAODMetaData: Fix operator<< definition.

operator<< should be defined within the namespace of the object its
printing.  Otherwise, it won't work correctly with clang.
parent eb12b181
No related branches found
No related tags found
No related merge requests found
/* /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/ */
// $Id: FileMetaData_v1.cxx 683694 2015-07-17 09:03:52Z krasznaa $ // $Id: FileMetaData_v1.cxx 683694 2015-07-17 09:03:52Z krasznaa $
...@@ -362,8 +362,6 @@ namespace xAOD { ...@@ -362,8 +362,6 @@ namespace xAOD {
return true; return true;
} }
} // namespace xAOD
/// Helper macro used to print MetaDataType values /// Helper macro used to print MetaDataType values
#define PRINT_TYPE( TYPE ) \ #define PRINT_TYPE( TYPE ) \
case xAOD::FileMetaData_v1::TYPE: \ case xAOD::FileMetaData_v1::TYPE: \
...@@ -404,3 +402,5 @@ std::ostream& operator<< ( std::ostream& out, ...@@ -404,3 +402,5 @@ std::ostream& operator<< ( std::ostream& out,
return out; return out;
} }
} // 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-2020 CERN for the benefit of the ATLAS collaboration
*/ */
// $Id: FileMetaData_v1.h 685184 2015-07-23 20:25:43Z cranshaw $ // $Id: FileMetaData_v1.h 685184 2015-07-23 20:25:43Z cranshaw $
...@@ -106,11 +106,11 @@ namespace xAOD { ...@@ -106,11 +106,11 @@ namespace xAOD {
}; // class FileMetaData_v1 }; // class FileMetaData_v1
} // namespace xAOD /// A convenience print operator for xAOD::FileMetaData_v1::MetaDataType
std::ostream& operator<< ( std::ostream& out,
xAOD::FileMetaData_v1::MetaDataType type );
/// A convenience print operator for xAOD::FileMetaData_v1::MetaDataType } // namespace xAOD
std::ostream& operator<< ( std::ostream& out,
xAOD::FileMetaData_v1::MetaDataType type );
// Declare a base class for the type: // Declare a base class for the type:
#include "xAODCore/BaseInfo.h" #include "xAODCore/BaseInfo.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