/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/Common/src/View.cc
21 строка
604 B
Matti Kortelainen
Remove explicit assignment operator from edm::View
20 ноя 2023, 19:27
20 ноя 2023, 19:27
796f732
Код
Авторство
О чём код?
#include "DataFormats/Common/interface/View.h" #include <typeinfo> namespace edm { //------------------------------------------------------------------ // Implementation of ViewBase. //------------------------------------------------------------------ ViewBase::~ViewBase() {} std::unique_ptr<ViewBase> ViewBase::clone() const { auto p = doClone(); #if !defined(NDEBUG) //move side-effect out of typeid to avoid compiler warning auto p_get = p.get(); assert(typeid(*p_get) == typeid(*this) && "doClone() incorrectly overriden"); #endif return p; } } // namespace edm