Hello,
I already have such assert:
struct MyAudioBlock
{
MyAudioBlock() = default;
~MyAudioBlock() = default;
double timeStamp;
dsp::AudioBlock<float> audioBuffer;
}
static_assert(std::is_trivially_copyable_v<MyAudioBlock>, "MyAudioBlock must be trivially copyable");
And it works. But I was warned by friend that dsp::AudioBlock<float> is not always trivially copyable because it depends on JUCE version and compilator. Is that true? Or it’s bullshit and I can sleep soundly?
