Skip to content

Commit

Permalink
Wrong function call for size()
Browse files Browse the repository at this point in the history
  • Loading branch information
vector-of-bool committed Sep 8, 2018
1 parent 692890b commit 9a80e17
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions CMakeRC.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,15 @@ set(hpp_content [==[
#ifndef CMRC_CMRC_HPP_INCLUDED
#define CMRC_CMRC_HPP_INCLUDED

#include <string>
#include <map>
#include <mutex>
#include <list>
#include <type_traits>
#include <cassert>
#include <functional>
#include <iterator>
#include <list>
#include <map>
#include <mutex>
#include <string>
#include <system_error>
#include <type_traits>

namespace cmrc { namespace detail { struct dummy; } }

Expand All @@ -100,7 +101,7 @@ public:
iterator cbegin() const noexcept { return _begin; }
iterator end() const noexcept { return _end; }
iterator cend() const noexcept { return _end; }
std::size_t size() const { return std::difference(begin(), end()); }
std::size_t size() const { return std::distance(begin(), end()); }

file() = default;
file(iterator beg, iterator end) noexcept : _begin(beg), _end(end) {}
Expand Down

0 comments on commit 9a80e17

Please sign in to comment.