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 <dsinclair@chromium.org>
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
dan sinclair 2020-12-01 21:59:57 +00:00 committed by Commit Bot service account
parent 1b6a8ce165
commit 31f55c6517
1 changed files with 3 additions and 0 deletions

View File

@ -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