mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Fix copy constructor & assignment operator warning in FairMQChannel
Fix Weffc++ warnings - Add missing copy constructors and assignment operators . - Hide the warning from FairMQStateMachine.h where it is produced by boost and/or is intended. - Some code cleanup.
This commit is contained in:
committed by
Florian Uhlig
parent
9a0a8c7516
commit
e4fed2fa1b
@@ -6,20 +6,19 @@
|
||||
*/
|
||||
|
||||
#ifndef BASESOURCEPOLICY_H
|
||||
#define BASESOURCEPOLICY_H
|
||||
#define BASESOURCEPOLICY_H
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
// c++11 code
|
||||
// CRTP base class
|
||||
template <typename TDerived >
|
||||
class BaseSourcePolicy
|
||||
{
|
||||
public:
|
||||
BaseSourcePolicy()
|
||||
{}
|
||||
public:
|
||||
BaseSourcePolicy() {}
|
||||
|
||||
virtual ~BaseSourcePolicy()
|
||||
{}
|
||||
virtual ~BaseSourcePolicy() {}
|
||||
|
||||
template<typename C = TDerived>
|
||||
auto InitSource()-> decltype(static_cast<C*>(this)->InitSource() )
|
||||
@@ -49,7 +48,6 @@ public:
|
||||
static_assert(std::is_same<C, TDerived>{}, "BaseSourcePolicy::GetOutData hack broken");
|
||||
return static_cast<TDerived*>(this)->GetOutData();
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -87,5 +85,5 @@ public:
|
||||
|
||||
};
|
||||
*/
|
||||
#endif /* BASESOURCEPOLICY_H */
|
||||
|
||||
#endif /* BASESOURCEPOLICY_H */
|
||||
|
Reference in New Issue
Block a user