§8/5:
trailing-return-type中的可选属性说明符 序列属于指示的返回类型。trailing-return-type中 的type-id包括可能最长的abstract-declarator序列。[注意:这解决了数组和函数声明符的模糊绑定。[ 例子:
auto f()->int(*)[4]; // function returning a pointer to array[4] of int // not function returning array[4] of pointer to int
—结束示例] —结束说明]
“尾随返回类型中的类型 ID ”对我来说没有意义,仅仅是因为根据语法,尾随返回类型不包含类型 ID 。
我也不明白数组和函数声明的“模糊绑定”。据我所知
auto f() -> int*[4]; // function returning an array of 4 pointers to int
auto f() -> int(*)[4]; // function returning a pointer to an array of 4 ints