jeudi 25 février 2016

Printing boost::array<> to stdout

I have a boost::array declared as below

typedef boost::array<unsigned char, 4096> m_array_type;
m_array_type m_recv_buf;

I want to output m_recv_buf to stdout.

std::cout << m_recv_buf << std::endl;

doesn't seem to work? How do I print this to stdout

Aucun commentaire:

Enregistrer un commentaire