diff --git a/api/rtc_error.h b/api/rtc_error.h index 0e264af274..b8cb7f0bcd 100644 --- a/api/rtc_error.h +++ b/api/rtc_error.h @@ -115,7 +115,9 @@ class RTC_EXPORT RTCError { // but copy and assignment are provided for those cases that need it. // Note that this has extra overhead because it copies strings. RTCError(const RTCError& other) = default; + RTCError(RTCError&&) = default; RTCError& operator=(const RTCError& other) = default; + RTCError& operator=(RTCError&&) = default; // Identical to default constructed error. //