mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
fix: Add asserts to ensure NonCopyable and NonMovable 1/n
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
72a5e52385
commit
6b2b42972a
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2024 Intel Corporation
|
||||
* Copyright (C) 2018-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -126,9 +126,6 @@ class Program : public BaseObject<_cl_program> {
|
||||
Program(Context *context, bool isBuiltIn, const ClDeviceVector &clDevicesIn);
|
||||
~Program() override;
|
||||
|
||||
Program(const Program &) = delete;
|
||||
Program &operator=(const Program &) = delete;
|
||||
|
||||
cl_int build(const ClDeviceVector &deviceVector, const char *buildOptions);
|
||||
|
||||
cl_int build(const ClDeviceVector &deviceVector, const char *buildOptions,
|
||||
@@ -397,4 +394,6 @@ class Program : public BaseObject<_cl_program> {
|
||||
} decodedSingleDeviceBinary;
|
||||
};
|
||||
|
||||
static_assert(NEO::NonCopyableAndNonMovable<Program>);
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user