mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 10:51:50 -05:00
Fix "explicitly defaulted but implicitly deleted" warning
`PhysicalCore`'s move assignment operator was declared as `= default`, but was implicitly deleted because `PhysicalCore` has fields of reference type. Switch to explicitly deleting it to avoid a Clang warning. The move *constructor* is still defaulted, and is required to exist due to the use of `std::vector<PhysicalCore>`.
This commit is contained in:
parent
0dc234c5ea
commit
e31cb50405
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ public:
|
||||||
PhysicalCore& operator=(const PhysicalCore&) = delete;
|
PhysicalCore& operator=(const PhysicalCore&) = delete;
|
||||||
|
|
||||||
PhysicalCore(PhysicalCore&&) = default;
|
PhysicalCore(PhysicalCore&&) = default;
|
||||||
PhysicalCore& operator=(PhysicalCore&&) = default;
|
PhysicalCore& operator=(PhysicalCore&&) = delete;
|
||||||
|
|
||||||
/// Initialize the core for the specified parameters.
|
/// Initialize the core for the specified parameters.
|
||||||
void Initialize(bool is_64_bit);
|
void Initialize(bool is_64_bit);
|
||||||
|
|
Loading…
Reference in a new issue