mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-04-05 15:04:57 +00:00
GCC 6 compat
Use std::is_aggregate with feature testing macro.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user