From a9135ecd01362154aab3ccf861889f1b0c0db015 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Utkan=20K=C4=B1l=C4=B1=C3=A7?= <65946928+utkankilic@users.noreply.github.com> Date: Wed, 25 Oct 2023 08:33:08 +0300 Subject: [PATCH] Fix for non CWG 1270 revision compliant compilers (#173) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Utkan Kılıç utkankilic@gmail.com Signed-off-by: utkan.kilic Co-authored-by: utkan.kilic --- include/fastcdr/Cdr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fastcdr/Cdr.h b/include/fastcdr/Cdr.h index d25d38b6..53029edb 100644 --- a/include/fastcdr/Cdr.h +++ b/include/fastcdr/Cdr.h @@ -3341,7 +3341,7 @@ class Cdr EncodingAlgorithmFlag current_encoding_ {EncodingAlgorithmFlag::PLAIN_CDR2}; //! @brief This attribute stores the option flags when the CDR type is DDS_CDR; - std::array options_ {0}; + std::array options_{{0}}; //! @brief The endianness that will be applied over the buffer. uint8_t endianness_ {Endianness::LITTLE_ENDIANNESS};