From bcbb0d821b513ca1822687fb04dc5816b59b8c1e Mon Sep 17 00:00:00 2001 From: qqii Date: Mon, 17 Oct 2022 11:07:53 +0100 Subject: [PATCH] Fix rc::shrink::boolean not compiling on msvc MSVC complains with: > shrink.hpp(182): error C2446: ':': no conversion from 'rc::Seq' to 'rc::Seq' This is remedied by being explicit with the template argument. Fixes #298 --- include/rapidcheck/shrink/Shrink.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rapidcheck/shrink/Shrink.hpp b/include/rapidcheck/shrink/Shrink.hpp index 9ac4bc2e..df3375c9 100644 --- a/include/rapidcheck/shrink/Shrink.hpp +++ b/include/rapidcheck/shrink/Shrink.hpp @@ -183,7 +183,7 @@ Seq real(T value) { return seq::fromContainer(shrinks); } -Seq boolean(bool value) { return value ? seq::just(false) : Seq(); } +Seq boolean(bool value) { return value ? seq::just(false) : Seq(); } template Seq character(T value) {