Skip to content

Fails to build with MSVC v141 /std:c++17 due to C2446 #298

Open
@qqii

Description

rapidcheck\shrink\shrink.hpp(182): error C2446: ':': no conversion from 'rc::Seq<bool>' to 'rc::Seq<int>'
rapidcheck\shrink\shrink.hpp(182): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called

https://github.com/emil-e/rapidcheck/blob/master/include/rapidcheck/shrink/Shrink.hpp#L186

Seq<bool> boolean(bool value) { return value ? seq::just(false) : Seq<bool>(); }

This seems to be a compiler issue, but can be easily resolved by being explicit with the template argument

Seq<bool> boolean(bool value) { return value ? seq::just<bool>(false) : Seq<bool>(); }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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