[llvm-dev] Missing cl::parser<unsigned long> specialization?

Félix Cloutier via llvm-dev llvm-dev at lists.llvm.org
Tue Jan 19 16:08:00 PST 2016


Hi all,

I'm using a cl::opt<uint64_t>. On Mac OS X, uint64_t is unsigned long long, and so by default the option uses the parser<unsigned long long> specialization. However, on Linux, it's unsigned long, and there is no specialization for it. Because of it, the option has the default parser that expects a value from a predefined list, which is impractical for 64-bit numbers.

Is that on purpose?

Félix

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160119/11f76060/attachment.html>


More information about the llvm-dev mailing list