ARROW-13744: [CI] c++14 and 17 nightly job fails
ARROW-13744: [CI] c++14 and 17 nightly job fails

Closes #11004 from westonpace/bugfix/ARROW-13744-cpp-17-14-build-failing

Authored-by: Weston Pace <0dd0706858a011bb30a3fd82b71cee4f9094c502@gmail.com>
Signed-off-by: Yibo Cai <e732a3f0de35687e82bda0008a72e443d2f69704@arm.com>

apache/arrow,wesm/arrow,apache/arrow,laurentgo/arrow,kou/arrow,icexelloss/arrow,kou/arrow,apache/arrow,wesm/arrow,wesm/arrow,laurentgo/arrow,kou/arrow,kou/arrow,kou/arrow,wesm/arrow,icexelloss/arrow,apache/arrow,icexelloss/arrow,laurentgo/arrow,wesm/arrow,icexelloss/arrow,apache/arrow,laurentgo/arrow,apache/arrow,kou/arrow,kou/arrow,laurentgo/arrow,laurentgo/arrow,laurentgo/arrow,laurentgo/arrow,icexelloss/arrow,icexelloss/arrow,icexelloss/arrow,icexelloss/arrow,apache/arrow,wesm/arrow,apache/arrow,kou/arrow,kou/arrow,wesm/arrow,apache/arrow,wesm/arrow,icexelloss/arrow,icexelloss/arrow,icexelloss/arrow,icexelloss/arrow,laurentgo/arrow,laurentgo/arrow,kou/arrow,apache/arrow,wesm/arrow,kou/arrow,icexelloss/arrow,apache/arrow,laurentgo/arrow,laurentgo/arrow,icexelloss/arrow,kou/arrow,apache/arrow,kou/arrow,wesm/arrow,wesm/arrow,apache/arrow,wesm/arrow,wesm/arrow,laurentgo/arrow,wesm/arrow,kou/arrow,apache/arrow,laurentgo/arrow,laurentgo/arrow