Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2005-08-18 14:07:32

"Thorsten Ottosen" <nesotto_at_[hidden]> wrote in message
> "Christopher Kohlhoff" <chris_at_[hidden]> wrote in message

> 5. can't socket.recv() use something more highlevel than void* and size_t
> arguments?
> Why not std::vector<char> ? (The same applies to all the interface
> functions)

Furthermore, if you do want array arguments, then you might just

template< class T, std:size_t N >
void receive( T (&array)[N] )
{ /* call void ptr version here */ }

or perhaps just

template< std::size_t N >
void receive( char (&array)[N] ) { ... }



Boost list run by bdawes at, gregod at, cpdaniel at, john at