Skip to content
Snippets Groups Projects

Identifiable Container Redesign

Merged Adam Edward Barton requested to merge abarton/athena:optimizeIDCVector into master
Files
24
@@ -29,8 +29,10 @@
@@ -29,8 +29,10 @@
#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/MsgStream.h"
#include <memory>
#include <memory>
#include <type_traits>
#include <type_traits>
class IdentifiableContainerBase;
 
namespace EventContainers{
 
class IdentifiableContainerBase;
 
}
namespace AthenaPoolCnvSvc {
namespace AthenaPoolCnvSvc {
@@ -124,7 +126,7 @@ createTransient (TPCNV& cnv,
@@ -124,7 +126,7 @@ createTransient (TPCNV& cnv,
MsgStream& log)
MsgStream& log)
{
{
typedef typename TPCNV::Trans_t Trans_t;
typedef typename TPCNV::Trans_t Trans_t;
if constexpr(std::is_base_of< IdentifiableContainerBase, Trans_t>::value &&
if constexpr(std::is_base_of< EventContainers::IdentifiableContainerBase, Trans_t>::value &&
!std::is_default_constructible<Trans_t>::value)
!std::is_default_constructible<Trans_t>::value)
{
{
log << "IdentifiableContainerBase is not compatible with createTransient" << endmsg;
log << "IdentifiableContainerBase is not compatible with createTransient" << endmsg;
Loading