From c22f519c0cd3548f7a3f82b1b4bc0b3cf2117349 Mon Sep 17 00:00:00 2001 From: oknenavin Date: Fri, 14 Jun 2024 23:58:21 +0300 Subject: [PATCH] - cxon: fix g++5 error --- src/cxon/lang/cbor/class.hxx | 2 +- src/cxon/lang/common/cio/class.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cxon/lang/cbor/class.hxx b/src/cxon/lang/cbor/class.hxx index f59a4b8a..bb1268e2 100644 --- a/src/cxon/lang/cbor/class.hxx +++ b/src/cxon/lang/cbor/class.hxx @@ -113,7 +113,7 @@ namespace cxon { namespace cbor { namespace cls { template constexpr fields make_fields(Fs&&... fs) { - return { std::forward(fs)... }; + return std::make_tuple(std::forward(fs)...); } namespace imp { diff --git a/src/cxon/lang/common/cio/class.hxx b/src/cxon/lang/common/cio/class.hxx index 44e57902..52fa0b59 100644 --- a/src/cxon/lang/common/cio/class.hxx +++ b/src/cxon/lang/common/cio/class.hxx @@ -141,7 +141,7 @@ namespace cxon { namespace cio { namespace cls { template constexpr fields make_fields(Fs&&... fs) { - return { std::forward(fs)... }; + return std::make_tuple(std::forward(fs)...); } // read