[PATCH] D58969: Expose template parameters of endian specific types as class members
Pavel Labath via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 5 10:31:41 PST 2019
labath added a comment.
The use case is being able to convert from a `ulittle32_t` (and friends) into an enum class. Since both are strongly typed, I cannot convert between one and the other without an intermediate cast to the basic type (and so, in generic code, I need to know what that type is). You can see it in action in D58976 <https://reviews.llvm.org/D58976> (just search for `value_type`).
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58969/new/
https://reviews.llvm.org/D58969
More information about the llvm-commits
mailing list