Skip to content

Add padder_type into printer #18

Open
@kaverdeka

Description

@kaverdeka
public:
	template <class PAD_TRAITS, class FUNC>
	struct padder_type
	{
		constexpr explicit padder_type(FUNC& func) noexcept {}
		static constexpr void enable_padding(bool) noexcept { }
		static constexpr void add_padding() noexcept {}
	};

Example:

gtpu::proto proto;
char const* err = gtpu::decode(data, size, proto);
sink s;
med2::print(s, proto, max_depth); // error

Compile error:

../microcore/gate/rfms/src/msg_dump.cpp:217:13: required from here
../microcore/common/codec/med2/encode.hpp:274:47: error: no class template named 'padder_type' in 'class med2::printer<sink_t<100000>&, 128>'
274 | using pad_t = typename ENCODER::template padder_type<pad_traits, ENCODER>;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions