File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -67,14 +67,15 @@ set(hpp_content [==[
67
67
#ifndef CMRC_CMRC_HPP_INCLUDED
68
68
#define CMRC_CMRC_HPP_INCLUDED
69
69
70
- #include <string>
71
- #include <map>
72
- #include <mutex>
73
- #include <list>
74
- #include <type_traits>
75
70
#include <cassert>
76
71
#include <functional>
72
+ #include <iterator>
73
+ #include <list>
74
+ #include <map>
75
+ #include <mutex>
76
+ #include <string>
77
77
#include <system_error>
78
+ #include <type_traits>
78
79
79
80
namespace cmrc { namespace detail { struct dummy; } }
80
81
@@ -100,7 +101,7 @@ public:
100
101
iterator cbegin() const noexcept { return _begin; }
101
102
iterator end() const noexcept { return _end; }
102
103
iterator cend() const noexcept { return _end; }
103
- std::size_t size() const { return std::difference (begin(), end()); }
104
+ std::size_t size() const { return std::distance (begin(), end()); }
104
105
105
106
file() = default;
106
107
file(iterator beg, iterator end) noexcept : _begin(beg), _end(end) {}
You can’t perform that action at this time.
0 commit comments