GCC 6 compat

Use std::is_aggregate with feature testing macro.
This commit is contained in:
Martin Pulec
2020-09-11 08:41:32 +02:00
parent 625b9d8378
commit a376bfa2d3

View File

@@ -134,7 +134,9 @@ struct libavcodec_codec_state {
bool context_initialized;
audio_codec_direction_t direction;
};
#ifdef __cpp_lib_is_aggregate
static_assert(is_aggregate_v<libavcodec_codec_state>, "ensure aggregate to allow aggregate initialization");
#endif
#define STR_HELPER(x) #x
#define STR(x) STR_HELPER(x)