mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 12:58:00 +03:00
Use static_assert for compile time check
This commit is contained in:
parent
87d77a6882
commit
042c4b2b9d
1 changed files with 1 additions and 2 deletions
|
@ -406,8 +406,7 @@ namespace MWWorld
|
|||
template <class T>
|
||||
ContainerStoreIteratorBase(const ContainerStoreIteratorBase<T>& other)
|
||||
{
|
||||
char CANNOT_CONVERT_CONST_ITERATOR_TO_ITERATOR[IsConvertible<T, PtrType, void>::value ? 1 : -1];
|
||||
((void)CANNOT_CONVERT_CONST_ITERATOR_TO_ITERATOR);
|
||||
static_assert(IsConvertible<T, PtrType, void>::value);
|
||||
copy(other);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue