enable & switch to clang 6.0

Change-Id: I61910614ddaa37db18a3d995fa94efb03238279a
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
Artur Harasimiuk
2018-05-24 11:06:30 +02:00
committed by sys_ocldev
parent ab507d73de
commit 972c080083
13 changed files with 28 additions and 17 deletions

View File

@ -33,8 +33,14 @@ class ArrayRef {
using const_iterator = const DataType *;
template <typename IteratorType>
ArrayRef(IteratorType b, IteratorType e)
: b(&*b), e(&*(e - 1) + 1) {
ArrayRef(IteratorType b, IteratorType e) {
if (b != nullptr) {
this->b = &*b;
this->e = &*(e - 1) + 1;
} else {
this->b = nullptr;
this->e = nullptr;
}
}
template <typename IteratorType>
@ -52,9 +58,7 @@ class ArrayRef {
: b(&array[0]), e(&array[Size]) {
}
ArrayRef()
: b(0), e(0) {
}
ArrayRef() = default;
size_t size() const {
return e - b;
@ -94,8 +98,8 @@ class ArrayRef {
}
private:
DataType *b;
DataType *e;
DataType *b = nullptr;
DataType *e = nullptr;
};
template <typename T>