From 31f55c6517feea5a323f28cee54ae71dbdc75f6b Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Tue, 1 Dec 2020 21:59:57 +0000 Subject: [PATCH] Add move constructor to CastableBase. This CL adds the Move constructor to castable base as the default one is deleted due to the defined destructor and the Node subclass defines a Move constructor. Change-Id: I0eaac140719e74adfab1aeccf6ea663faff031e5 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/34580 Auto-Submit: dan sinclair Commit-Queue: Ben Clayton Reviewed-by: Ben Clayton --- src/castable.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/castable.h b/src/castable.h index 165b6fcf6e..960e1b8ced 100644 --- a/src/castable.h +++ b/src/castable.h @@ -48,6 +48,9 @@ class ClassID { /// @see Castable class CastableBase { public: + /// Move constructor + CastableBase(CastableBase&&) = default; + virtual ~CastableBase() = default; /// @returns true if this object is of, or derives from a class with the