Skip to content

Compiling example mbox under Windows problem: error C2784: '_RanIt1::difference_type std::operator #7

@tester0077

Description

@tester0077

The statements:
Line 155 it = utils::find_bm(bit, eit, "From ");
Line 156 if(!isnl(*(it-1))) >>>>> error C2784: '_RanIt1::difference_type std::operator ......

If I comment out line 156, I get the error
D:\pkg\C++\MSVC2010\mimetic-master\mimetic/utils.h(88): error C2664: 'mimetic::utils::find_bm' : cannot convert parameter 4 from 'std::input_iterator_tag' to 'const std::random_access_iterator_tag &'
1> Reason: cannot convert from 'std::input_iterator_tag' to 'const std::random_access_iterator_tag'
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called

I am unfamiliar enough with STL & mimetic to be able to resolve this issue on my own.
FWIW, using current mimetic-master from github

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions