Skip to content

Commit

Permalink
Fix rc::shrink::boolean not compiling on msvc
Browse files Browse the repository at this point in the history
MSVC complains with:
> shrink.hpp(182): error C2446: ':': no conversion from 'rc::Seq<bool>' to 'rc::Seq<int>'
This is remedied by being explicit with the template argument.

Fixes emil-e#298
  • Loading branch information
qqii committed Oct 17, 2022
1 parent 8fafda4 commit bcbb0d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/rapidcheck/shrink/Shrink.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Seq<T> real(T value) {
return seq::fromContainer(shrinks);
}

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

template <typename T>
Seq<T> character(T value) {
Expand Down

0 comments on commit bcbb0d8

Please sign in to comment.