Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In dumper need overload to IE_TAG #19

Open
kaverdeka opened this issue Jul 26, 2022 · 0 comments
Open

In dumper need overload to IE_TAG #19

kaverdeka opened this issue Jul 26, 2022 · 0 comments

Comments

@kaverdeka
Copy link

kaverdeka commented Jul 26, 2022

Add an operator() in the class dumper (printer.hpp) for IE_TAG that is used in print_all()

template <class IE>
constexpr void operator() (IE const& ie, IE_TAG) const noexcept {}

Example:

sink s;
diameter::slh::proto proto;
med2::print_all(s, proto); // error
..

//print all (named and not) IEs in full depth
template <class SINK, class IE, std::size_t MAX_LINE = 128>
void print_all(SINK&& sink, IE const& ie)

Compile error:

cannot convert 'med2::IE_TAG{}' (type 'med2::IE_TAG') to type 'med2::PRIMITIVE'
encoder(ie, IE_TAG{});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant