From 6cf70867616d482ba2372bc28067a8432c2cc033 Mon Sep 17 00:00:00 2001 From: Andrej Babic Date: Fri, 17 Apr 2020 11:42:11 +0200 Subject: [PATCH] Add constructor to JF struct --- core-buffer/include/JFFileFormat.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core-buffer/include/JFFileFormat.hpp b/core-buffer/include/JFFileFormat.hpp index dff42c5..44ae62c 100644 --- a/core-buffer/include/JFFileFormat.hpp +++ b/core-buffer/include/JFFileFormat.hpp @@ -8,7 +8,10 @@ const char JF_FORMAT_START_BYTE = 0xBE; #pragma pack(push) #pragma pack(1) struct JFFileFormat { - const char FORMAT_MARKER = JF_FORMAT_START_BYTE; + + JFFileFormat() : FORMAT_MARKER(JF_FORMAT_START_BYTE) {}; + + const char FORMAT_MARKER; uint64_t pulse_id; uint64_t frame_id; uint32_t daq_rec;