fix build error on some compilers, presumably from using a temporary as a const reference argument