Skip to content

Commit ecb0000

Browse files
committed
fixes clang tidy warnings
1 parent ed047ea commit ecb0000

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

chain.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class iter::impl::Chained {
4646
rest_chained{std::forward<RestContainers>(rest)...} {}
4747

4848
public:
49-
Chained(Chained&&) = default;
49+
Chained(Chained&&) noexcept = default;
5050
class Iterator : public std::iterator<std::input_iterator_tag,
5151
iterator_traits_deref<Container>> {
5252
private:
@@ -123,7 +123,7 @@ class iter::impl::Chained<Container> {
123123
: container(std::forward<Container>(in_container)) {}
124124

125125
public:
126-
Chained(Chained&&) = default;
126+
Chained(Chained&&) noexcept = default;
127127
class Iterator : public std::iterator<std::input_iterator_tag,
128128
iterator_traits_deref<Container>> {
129129
private:
@@ -181,7 +181,7 @@ class iter::impl::ChainedFromIterable {
181181
: container(std::forward<Container>(in_container)) {}
182182

183183
public:
184-
ChainedFromIterable(ChainedFromIterable&&) = default;
184+
ChainedFromIterable(ChainedFromIterable&&) noexcept = default;
185185
class Iterator : public std::iterator<std::input_iterator_tag,
186186
iterator_traits_deref<iterator_deref<Container>>> {
187187
private:
@@ -231,7 +231,7 @@ class iter::impl::ChainedFromIterable {
231231
sub_end_p{clone_sub_pointer(other.sub_end_p.get())} {}
232232

233233
Iterator& operator=(const Iterator& other) {
234-
if (this == &other) return *this;
234+
if (this == &other) { return *this; }
235235

236236
this->top_level_iter = other.top_level_iter;
237237
this->top_level_end = other.top_level_end;
@@ -241,8 +241,8 @@ class iter::impl::ChainedFromIterable {
241241
return *this;
242242
}
243243

244-
Iterator(Iterator&&) = default;
245-
Iterator& operator=(Iterator&&) = default;
244+
Iterator(Iterator&&) noexcept = default;
245+
Iterator& operator=(Iterator&&) noexcept = default;
246246
~Iterator() = default;
247247

248248
Iterator& operator++() {

0 commit comments

Comments
 (0)