Zivid C++ API  2.3.1+1a22cbf1-1
Defining the Future of 3D Machine Vision
Macros
DataFormatUtils.h File Reference

Go to the source code of this file.

Macros

#define ZIVID_STATIC_ASSERT_DATA_FORMAT_TYPE(Type, size)
 

Macro Definition Documentation

◆ ZIVID_STATIC_ASSERT_DATA_FORMAT_TYPE

#define ZIVID_STATIC_ASSERT_DATA_FORMAT_TYPE (   Type,
  size 
)
Value:
static_assert(sizeof(Type) == size, "Size of type must be " #size); \
static_assert(std::is_trivial<Type>::value, "Type must be trivial"); \
static_assert(std::is_standard_layout<Type>::value, "Type must be standard_layout");