From 8dad985328e2183b224300aa992951131956fdb3 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 23 Jan 2024 13:12:11 +0100 Subject: core,codec-json,codec-minecraft,codec-netcdf,codec,io-tls,io,io_codec,window,window-opengl: Renamed file endings and changed includes --- modules/codec/c++/schema_factory.h | 49 -------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 modules/codec/c++/schema_factory.h (limited to 'modules/codec/c++/schema_factory.h') diff --git a/modules/codec/c++/schema_factory.h b/modules/codec/c++/schema_factory.h deleted file mode 100644 index bb8588f..0000000 --- a/modules/codec/c++/schema_factory.h +++ /dev/null @@ -1,49 +0,0 @@ -#pragma once - -#include "schema.h" - -namespace saw { -template -struct schema_factory { - using Schema = T; - static_assert(always_false, "Not supported"); -}; - -template -struct schema_factory...>> { - using Schema = schema::Struct...>; - - template - constexpr schema_factory...,schema::Member>> add() const noexcept { - return {}; - } -}; - -template -struct schema_factory...>> { - using Schema = schema::Union...>; - - template - constexpr schema_factory...,schema::Member>> add() const noexcept { - return {}; - } -}; - -template -struct schema_factory> { - using Schema = schema::Tuple; - - template - constexpr schema_factory> add() const noexcept { - return {}; - } -}; - -/** - * This creates the base schema. For example an empty struct,tuple,union or anything else. - */ -template -constexpr schema_factory build_schema() noexcept { - return {}; -} -} -- cgit v1.2.3