From 6493afefed93151bd33221c2b903b80b39df3507 Mon Sep 17 00:00:00 2001 From: Peter Kasting Date: Sat, 20 Aug 2022 11:12:24 -0700 Subject: [PATCH] Remove user-declared constructors from sturct used as aggregate. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Structs with user-declared constructors are not aggregates in C++20. This fixes a C++20 compile error. Bug: chromium:1284275 Change-Id: Iaeab959fc72ac6bf395af57d10808baee2db533f Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/272522 Auto-Submit: Peter Kasting Reviewed-by: Erik Språng Commit-Queue: Peter Kasting Cr-Commit-Position: refs/heads/main@{#37854} --- video/video_receive_stream2.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/video/video_receive_stream2.h b/video/video_receive_stream2.h index c16e418775..753d5bbc42 100644 --- a/video/video_receive_stream2.h +++ b/video/video_receive_stream2.h @@ -205,11 +205,6 @@ class VideoReceiveStream2 void CreateAndRegisterExternalDecoder(const Decoder& decoder); struct DecodeFrameResult { - DecodeFrameResult(const DecodeFrameResult&) = delete; - DecodeFrameResult& operator=(const DecodeFrameResult&) = delete; - DecodeFrameResult(DecodeFrameResult&&) = default; - DecodeFrameResult& operator=(DecodeFrameResult&&) = default; - // True if the decoder returned code WEBRTC_VIDEO_CODEC_OK_REQUEST_KEYFRAME, // or if the decoder failed and a keyframe is required. When true, a // keyframe request should be sent even if a keyframe request was sent