Skip to content

Commit 4e16fd3

Browse files
committed
Use explicit constructor
1 parent e51709e commit 4e16fd3

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

include/osmium/object_pointer_collection.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ namespace osmium {
5555
using pointer = value_type*;
5656
using reference = value_type&;
5757

58-
indirect_iterator(TBaseIterator it) :
58+
explicit indirect_iterator(TBaseIterator it) :
5959
TBaseIterator(it) {
6060
}
6161

@@ -152,19 +152,19 @@ namespace osmium {
152152
}
153153

154154
iterator begin() {
155-
return {m_objects.begin()};
155+
return iterator{m_objects.begin()};
156156
}
157157

158158
iterator end() {
159-
return {m_objects.end()};
159+
return iterator{m_objects.end()};
160160
}
161161

162162
const_iterator cbegin() const {
163-
return {m_objects.cbegin()};
163+
return const_iterator{m_objects.cbegin()};
164164
}
165165

166166
const_iterator cend() const {
167-
return {m_objects.cend()};
167+
return const_iterator{m_objects.cend()};
168168
}
169169

170170
/// Access to begin of pointer vector.

0 commit comments

Comments
 (0)