diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-05-04 17:57:20 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-05-04 17:57:20 +0200 |
| commit | dfc9dcbb6b592d5639f5e9232bd022b85090a5b1 (patch) | |
| tree | 68fa4790e5d64b1161554b2323b21f5daca6f221 /modules | |
| parent | ecc512ba388a04c84cef639cead2273934b485db (diff) | |
| download | forstio-forstio-dfc9dcbb6b592d5639f5e9232bd022b85090a5b1.tar.gz | |
Testing forwarding simplificationsdev
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/codec-unit/tests/codec-unit.cpp | 4 | ||||
| -rw-r--r-- | modules/codec/c++/data.hpp | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/modules/codec-unit/tests/codec-unit.cpp b/modules/codec-unit/tests/codec-unit.cpp index 1321316..88277c6 100644 --- a/modules/codec-unit/tests/codec-unit.cpp +++ b/modules/codec-unit/tests/codec-unit.cpp @@ -25,7 +25,7 @@ using FantasySquareMeter = Unit< SAW_TEST("Codec Unit/Addition"){ using namespace saw; - data<sch::FantasyMeter> a{{5}}, b{{4}}; + data<sch::FantasyMeter> a{5}, b{{4}}; auto c = a + b; @@ -45,7 +45,7 @@ SAW_TEST("Codec Unit/Subtraction"){ SAW_TEST("Codec Unit/Multiplication"){ using namespace saw; - data<sch::FantasyMeter> a{{5}}, b{{4}}; + data<sch::FantasyMeter> a{5}, b{4}; auto c = a * b; diff --git a/modules/codec/c++/data.hpp b/modules/codec/c++/data.hpp index 217a53f..b9924c7 100644 --- a/modules/codec/c++/data.hpp +++ b/modules/codec/c++/data.hpp @@ -326,6 +326,14 @@ public: { } + /* + template<typename... Args> + requires (sizeof...(Args) == ct_multiply<uint64_t, D...>::value) && + (std::constructible_from<data<T, encode::Native>, Args> && ...) + constexpr data(Args&&... args): + value_{ { std::forward<Args>(args)... } } {} + */ + SAW_DEFAULT_COPY(data); SAW_DEFAULT_MOVE(data); |
