2 parents dd54790 + 34b810c commit 3eb9b4fCopy full SHA for 3eb9b4f
1 file changed
include/rapidcheck/gen/Build.hpp
@@ -127,7 +127,7 @@ Gen<T> construct(Gen<Args>... gens) {
127
[](std::tuple<Args...> &&argsTuple) {
128
return rc::detail::applyTuple(
129
std::move(argsTuple),
130
- [](Args &&... args) { return T(std::move(args)...); });
+ [](Args &&... args) { return T{std::move(args)...}; });
131
});
132
}
133
@@ -143,7 +143,7 @@ Gen<std::unique_ptr<T>> makeUnique(Gen<Args>... gens) {
143
144
145
[](Args &&... args) {
146
- return std::unique_ptr<T>(new T(std::move(args)...));
+ return std::unique_ptr<T>(new T{std::move(args)...});
147
148
149
0 commit comments