Skip to content
Snippets Groups Projects
Commit bb7068fc authored by Scott Snyder's avatar Scott Snyder Committed by scott snyder
Browse files

EventContainers: Fix gcc9 warnings.

In C++11, implicit declarations of copy and assignment are deprecated if the
class has a user defined destructor or copy or assignment.  gcc9 now warns
about this by default.
Adjust to avoid the warning.
parent 6b3e0702
No related branches found
No related tags found
No related merge requests found
......@@ -106,17 +106,6 @@ public:
/// iterator constructor
const_iterator() : m_sptr(), m_current(nullptr), m_idContainer(nullptr), m_end(false) { }
/// assignment operator
const_iterator& operator = ( const const_iterator & it ) {
if(this == &it) return *this;//Safeguard against self assignment
m_hashItr = it.m_hashItr;
m_sptr = it.m_sptr;
m_current = it.m_current;
m_idContainer = it.m_idContainer;
m_end = it.m_end;
return *this;
}
/// increment operator
const_iterator& operator ++ () {
if(m_end) return *this;
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
*/
#include "EventContainers/IdentifiableContainerMT.h"
#include <vector>
......@@ -208,6 +208,8 @@ public:
PseudoView(int s, int r, EventContainers::IdentifiableCache<MyCollection>* inIDC, int i) : IDC(inIDC), RoIStart(s), RoIEnd(r),
threads(i), c() {}
PseudoView (const PseudoView&) = default;
PseudoView& operator= (const PseudoView&) = default;
virtual ~PseudoView() {}
};
......
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