|
|
|
|
|
by MaulingMonkey
3074 days ago
|
|
C++ compilers also have references to arrays which can be abused in some cases: template < size_t len > int read(int fd, char (&buf)[len]); // array size will be infered
int read(int fd, char (&buf)[1024]); // array size must be exactly 1024
|
|