dune-common 2.9.0
|
Compute size of variadic type list. More...
#include <dune/common/typetraits.hh>
Compute size of variadic type list.
T | Variadic type list |
The ::value member gives the size of the variadic type list T... This should be equivalent to sizeof...(T). However, with clang the latter may produce wrong results if used in template aliases due to clang bug 14858 (https://llvm.org/bugs/show_bug.cgi?id=14858).
As a workaround one can use SizeOf<T...>::value instead of sizeof...(T) in template aliases for any code that should work with clang < 3.8.