From 2b153a0e0263e5a76550b15382e2609f7b5a5d41 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 24 Aug 2026 17:15:52 +0200 Subject: Stuff --- modules/core/c++/abstract/schema.hpp | 6 ------ modules/core/c++/abstract/stringify_schema.hpp | 20 ++++++++++---------- 2 files changed, 10 insertions(+), 16 deletions(-) (limited to 'modules/core/c++/abstract') diff --git a/modules/core/c++/abstract/schema.hpp b/modules/core/c++/abstract/schema.hpp index 8bc23b4..89d9c2e 100644 --- a/modules/core/c++/abstract/schema.hpp +++ b/modules/core/c++/abstract/schema.hpp @@ -42,12 +42,6 @@ using Float16 = Primitive; using Float32 = Primitive; using Float64 = Primitive; -template -struct MixedPrecision { - using Meta = Void; - using Inner = Sch; -}; - template struct FixedArray { using Meta = Void; diff --git a/modules/core/c++/abstract/stringify_schema.hpp b/modules/core/c++/abstract/stringify_schema.hpp index 3d6b1d1..dd218d0 100644 --- a/modules/core/c++/abstract/stringify_schema.hpp +++ b/modules/core/c++/abstract/stringify_schema.hpp @@ -10,36 +10,36 @@ template struct schema_to_string_helper { static_assert(always_false, "schema_to_string_helper specialization not handled."); - static constexpr string_literal apply(){ - return {}; + static constexpr auto apply(){ + return string_literal{""}; } }; template<> struct schema_to_string_helper final { - static constexpr string_literal apply(){ - return "SignedInteger"; + static constexpr auto apply(){ + return string_literal{"SignedInteger"}; } }; template<> struct schema_to_string_helper final { - static constexpr string_literal apply(){ - return "UnsignedInteger"; + static constexpr auto apply(){ + return string_literal{"UnsignedInteger"}; } }; template<> struct schema_to_string_helper final { - static constexpr string_literal apply(){ - return "FloatingPoint"; + static constexpr auto apply(){ + return string_literal{"FloatingPoint"}; } }; template struct schema_to_string_helper> final { - static constexpr string_literal apply(){ - return "Primitive<"+schema_to_string_helper::apply()+","+N+">"; + static constexpr auto apply(){ + return string_literal{"Primitive<"}+schema_to_string_helper::apply()+string_literal{","}+N+string_literal{">"}; } }; } -- cgit v1.2.3