Browse Source

Migrate away from deprecated `std::iterator` class

adaptive-webui-19844
Chocobo1 4 years ago
parent
commit
5bd6ff2285
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 8
      src/base/utils/io.h

8
src/base/utils/io.h

@ -40,9 +40,15 @@ namespace Utils
{ {
// A wrapper class that satisfy LegacyOutputIterator requirement // A wrapper class that satisfy LegacyOutputIterator requirement
class FileDeviceOutputIterator class FileDeviceOutputIterator
: public std::iterator<std::output_iterator_tag, void, void, void, void>
{ {
public: public:
// std::iterator_traits
using iterator_category = std::output_iterator_tag;
using difference_type = void;
using value_type = void;
using pointer = void;
using reference = void;
explicit FileDeviceOutputIterator(QFileDevice &device, const int bufferSize = (4 * 1024)); explicit FileDeviceOutputIterator(QFileDevice &device, const int bufferSize = (4 * 1024));
FileDeviceOutputIterator(const FileDeviceOutputIterator &other) = default; FileDeviceOutputIterator(const FileDeviceOutputIterator &other) = default;
~FileDeviceOutputIterator(); ~FileDeviceOutputIterator();

Loading…
Cancel
Save