From ea306799624d0390074f6afa5d38644cce076c9f Mon Sep 17 00:00:00 2001 From: Claudius 'keldu' Holeksa Date: Wed, 24 Jul 2024 11:09:55 +0200 Subject: wip --- modules/codec/c++/transport.hpp | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'modules/codec/c++') diff --git a/modules/codec/c++/transport.hpp b/modules/codec/c++/transport.hpp index db277d1..430f719 100644 --- a/modules/codec/c++/transport.hpp +++ b/modules/codec/c++/transport.hpp @@ -1,5 +1,8 @@ #pragma once +#include +#include "data.hpp" + namespace saw { namespace transport { template @@ -12,23 +15,16 @@ struct NewLine {}; struct CarriageReturnNewLine {}; } -template -struct transport { -private: - static_assert(always_false, "Transport kind not supported."); -public: - - -template -struct transport> { +template +struct codec> { private: public: - error_or view_slice(const buffer& buff) const { + error_or view_slice(buffer& buff) const { (void) buff; return make_error(); } - error_or chain_slice(buffer& buff) const { + error_or chain_slice(chain_array_buffer& buff) const { (void) buff; return make_error(); } -- cgit v1.2.3