Check for variadic template support

Review: https://reviews.apache.org/r/25261