diff --git a/src/dawn/common/SerialStorage.h b/src/dawn/common/SerialStorage.h index 5194a21d35..2eae0adee6 100644 --- a/src/dawn/common/SerialStorage.h +++ b/src/dawn/common/SerialStorage.h @@ -35,7 +35,7 @@ class SerialStorage { public: class Iterator { public: - Iterator(StorageIterator start); + explicit Iterator(StorageIterator start); Iterator& operator++(); bool operator==(const Iterator& other) const; @@ -52,7 +52,7 @@ class SerialStorage { class ConstIterator { public: - ConstIterator(ConstStorageIterator start); + explicit ConstIterator(ConstStorageIterator start); ConstIterator& operator++(); bool operator==(const ConstIterator& other) const; @@ -198,12 +198,12 @@ SerialStorage::BeginEnd::BeginEnd(typename SerialStorage::Stor template typename SerialStorage::Iterator SerialStorage::BeginEnd::begin() const { - return {mStartIt}; + return SerialStorage::Iterator(mStartIt); } template typename SerialStorage::Iterator SerialStorage::BeginEnd::end() const { - return {mEndIt}; + return SerialStorage::Iterator(mEndIt); } // SerialStorage::Iterator