Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Common/MathUtils/include/MathUtils/Cartesian.h
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ GPUdi() SMatrix<T, D1, D1, MatRepSym<T, D1>> Similarity(const SMatrix<T, D1, D2,
#if (!defined(GPUCA_STANDALONE) || !defined(DGPUCA_NO_ROOT)) && !defined(GPUCA_GPUCODE) && !defined(GPUCOMMONRTYPES_H_ACTIVE)
std::ostream& operator<<(std::ostream& os, const o2::math_utils::Rotation2Df_t& t);
std::ostream& operator<<(std::ostream& os, const o2::math_utils::Rotation2Dd_t& t);
namespace o2::framework {
namespace o2::framework
{
template <typename T>
struct is_forced_trivially_copyable;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,8 @@ struct is_messageable<o2::dcs::DataPointCompositeObject> : std::true_type {
} // namespace o2

/// Defining DataPointCompositeObject explicitly as copiable
namespace o2::framework {
namespace o2::framework
{
template <typename T>
struct is_forced_trivially_copyable;

Expand Down
3 changes: 2 additions & 1 deletion Detectors/DCS/include/DetectorsDCS/DataPointIdentifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ struct hash<o2::dcs::DataPointIdentifier> {
}
};
} // namespace std
namespace o2::framework {
namespace o2::framework
{
template <typename T>
struct is_forced_trivially_copyable;

Expand Down
10 changes: 5 additions & 5 deletions Framework/Core/include/Framework/TypeTraits.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ struct is_forced_non_messageable<
};

template <typename T>
struct is_forced_trivially_copyable: std::false_type {
struct is_forced_trivially_copyable : std::false_type {
};

// TODO: extend this to exclude structs with pointer data members
// see e.g. https://stackoverflow.com/questions/32880990/how-to-check-if-class-has-pointers-in-c14
template <typename T>
struct is_messageable : std::conditional<(std::is_trivially_copyable<T>::value || //
struct is_messageable : std::conditional<(std::is_trivially_copyable<T>::value || //
framework::is_forced_trivially_copyable<T>::value) && //
!std::is_polymorphic<T>::value && //
!std::is_pointer<T>::value && //
!is_forced_non_messageable<T>::value, //
!std::is_polymorphic<T>::value && //
!std::is_pointer<T>::value && //
!is_forced_non_messageable<T>::value, //
std::true_type,
std::false_type>::type {
};
Expand Down
Loading