mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Disallow copying and moving TagNode
Change-Id: I1a350edaff300c68a4a7314ea984382b88288413 Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
42200bf7f3
commit
71bd96ad71
@ -79,6 +79,11 @@ class MockTagAllocator : public TagAllocator<TagType> {
|
||||
}
|
||||
};
|
||||
|
||||
TEST_F(TagAllocatorTest, givenTagNodeTypeWhenCopyingOrMovingThenDisallow) {
|
||||
EXPECT_FALSE(std::is_move_constructible<TagNode<TimeStamps>>::value);
|
||||
EXPECT_FALSE(std::is_copy_constructible<TagNode<TimeStamps>>::value);
|
||||
}
|
||||
|
||||
TEST_F(TagAllocatorTest, Initialize) {
|
||||
|
||||
MockTagAllocator<TimeStamps> tagAllocator(memoryManager, 100, 64, deviceBitfield);
|
||||
|
Reference in New Issue
Block a user