Код: Выделить всё
typedef int const (Three_Const_Ints)[3];
Three_Const_Ints const & foo ()
{
static int const values[] = { 0, 1, 2 };
return values;
}
int const (&)[3] bar () // Does not compile. What is the proper syntax?
{
static int const values[] = { 0, 1, 2 };
return values;
}
Подробнее здесь: https://stackoverflow.com/questions/251 ... eturn-type