Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions qcrt/include/util/util_iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
namespace util
{
template<class container>
class push_iterator : public std::iterator<std::output_iterator_tag, void, void, void, void>
class push_iterator
{

public:
Expand All @@ -15,6 +15,10 @@ namespace util
typedef container container_type;
typedef typename container::const_reference const_reference;
typedef typename container::value_type value_type;
typedef std::output_iterator_tag iterator_category;
typedef void difference_type;
typedef void pointer;
typedef void reference;

explicit push_iterator(container& cont)
: m_container(&cont)
Expand Down Expand Up @@ -60,6 +64,7 @@ namespace util
};
}

#if defined(_MSC_VER) && _MSC_VER < 1915
namespace std
{
template<class container>
Expand All @@ -69,5 +74,6 @@ namespace std
// mark push_iterator as checked
};
}
#endif

#endif
#endif
Loading