(a+i) form assumes that a can be used as the left hand side of operator+(). This is true for pointers, and for C arrays that degrade into pointers, but not for C++ std::array. Switch to the explicit syntax. git grep -lz 'multibuf+' | xargs -0 sed -i -e 's/(\s*multibuf\s*+\s*\(\w\+\),/(\&multibuf[\1],/g' |
||
---|---|---|
.. | ||
2d | ||
3d | ||
arch | ||
editor | ||
main | ||
misc |