summaryrefslogtreecommitdiff
path: root/src/compat/iter.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/compat/iter.hpp')
-rw-r--r--src/compat/iter.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compat/iter.hpp b/src/compat/iter.hpp
index 08c139e..7ed24da 100644
--- a/src/compat/iter.hpp
+++ b/src/compat/iter.hpp
@@ -24,6 +24,8 @@
# include <iterator>
+namespace tmwa
+{
/// Simple class to use a pair of iterators with foreach
template<class It>
class IteratorPair
@@ -149,5 +151,6 @@ IteratorPair<FilterIterator<T, F, C>> filter_iterator(C *c, F f=is_truthy<T>)
{
return {FilterIterator<T, F, C>(c, f), FilterIterator<T, F, C>(c, f)};
}
+} // namespace tmwa
#endif // TMWA_COMPAT_ITER_HPP