mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
fix: add noexcept to move operators
Without it, copy operator is selected, even if move is explicitly defined. Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e030086cf2
commit
6a7f6f1ad6
@@ -32,7 +32,7 @@ ISAPool::ISAPool(Device *device, bool isBuiltin, size_t storageSize)
|
||||
this->stackVec.push_back(graphicsAllocation);
|
||||
}
|
||||
|
||||
ISAPool::ISAPool(ISAPool &&pool) : BaseType(std::move(pool)) {
|
||||
ISAPool::ISAPool(ISAPool &&pool) noexcept : BaseType(std::move(pool)) {
|
||||
this->isBuiltin = pool.isBuiltin;
|
||||
mtx.reset(pool.mtx.release());
|
||||
this->stackVec = std::move(pool.stackVec);
|
||||
|
||||
Reference in New Issue
Block a user