[PATCH] D25342: Turn cl::values() (for enum) from a vararg function to using C++ variadic template

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 6 14:11:12 PDT 2016


mehdi_amini added inline comments.


> zturner wrote in CommandLine.h:594-595
> Is this going to give you unwanted copies?  Is there any difference if you take the parameter pack by rvalue reference?

I expect copy-elision to kick-in anyway, but I can use universal reference as well.

https://reviews.llvm.org/D25342





More information about the llvm-commits mailing list