Work around for bug in GNU 3.2 and MSVC compilers. More...
#include <tbb_machine.h>
Static Public Attributes | |
static const size_t | alignment = __TBB_alignof(T) |
Work around for bug in GNU 3.2 and MSVC compilers.
Bug is that compiler sometimes returns 0 for __alignof(T) when T has not yet been instantiated. The work-around forces instantiation by forcing computation of sizeof(T) before __alignof(T).