7#if !defined(ASYNC_MQTT_PACKET_PACKET_HELPER_HPP)
8#define ASYNC_MQTT_PACKET_PACKET_HELPER_HPP
11#include <async_mqtt/packet/packet_traits.hpp>
12#include <async_mqtt/packet/packet_fwd.hpp>
13#include <async_mqtt/packet/packet_variant_fwd.hpp>
17template <
typename Packet>
19 hex_dump_t(Packet
const& p):p{p} {}
24template <
typename Packet>
25std::ostream&
operator<< (std::ostream& o, hex_dump_t<Packet>
const& v);
39template <
typename Packet>
41 return hex_dump_t<Packet>{p};
46#include <async_mqtt/packet/impl/packet_helper.hpp>
std::ostream & operator<<(std::ostream &o, mqtt_error v)
output to the stream
hex_dump_t< Packet > hex_dump(Packet const &p)
hexdump the packet. Usage. std::cout << hex_dump(p) << std::endl;
Definition packet_helper.hpp:40