From 538e3346c0dabec293b62178ef674abf627b60be Mon Sep 17 00:00:00 2001 From: Matthias Richter Date: Tue, 12 Jun 2018 09:24:50 +0200 Subject: [PATCH] add message to static_assert to comply with C++ standard static_assert with no message is a C++17 extension --- Detectors/ITSMFT/common/reconstruction/src/PixelData.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Detectors/ITSMFT/common/reconstruction/src/PixelData.cxx b/Detectors/ITSMFT/common/reconstruction/src/PixelData.cxx index 9379540571b9b..04a2a485b2ace 100644 --- a/Detectors/ITSMFT/common/reconstruction/src/PixelData.cxx +++ b/Detectors/ITSMFT/common/reconstruction/src/PixelData.cxx @@ -20,5 +20,6 @@ using namespace o2::ITSMFT; void PixelData::sanityCheck() const { // make sure the mask used in this class are compatible with Alpide segmenations - static_assert(RowMask + 1 >= o2::ITSMFT::SegmentationAlpide::NRows); + static_assert(RowMask + 1 >= o2::ITSMFT::SegmentationAlpide::NRows, + "incompatible mask, does not match Alpide segmentations"); }