Skip to content

counting_iterator used as a forward iterator in <algorithm> generates warning in C++17 #59

Description

@luke-sterkowicz

Following results in iterator_adaptor.hpp(318,1): warning C4244: '+=': conversion from '__int64' to 'Base', possible loss of data

std::for_each(std::execution::par, boost::counting_iterator<int>(0), boost::counting_iterator<int>(10), [&](int) {});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions