I\'ve tried the following:
char[10] testfunc() { char[10] str; return str; }
With Boost:
boost::array testfunc() { boost::array str; return str; }
A normal char[10] (or any other array) can't be returned from a function.
char[10]