File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -766,12 +766,20 @@ template<typename Distribution, typename Validator>
766
766
// test Distribution with same range as engine
767
767
768
768
// test host
769
- thrust::generate (h.begin (), h.end (), Validator (Distribution (Engine::min, Engine::max)));
769
+ THRUST_DISABLE_MSVC_WARNING_BEGIN (4305 )
770
+ thrust::generate (h.begin (), h.end (), Validator (
771
+ Distribution (Engine::min, Engine::max)
772
+ ));
773
+ THRUST_DISABLE_MSVC_WARNING_END (4305 )
770
774
771
775
ASSERT_EQUAL (true , h[0 ]);
772
776
773
777
// test device
774
- thrust::generate (d.begin (), d.end (), Validator (Distribution (Engine::min, Engine::max)));
778
+ THRUST_DISABLE_MSVC_WARNING_BEGIN (4305 )
779
+ thrust::generate (d.begin (), d.end (), Validator (
780
+ Distribution (Engine::min, Engine::max)
781
+ ));
782
+ THRUST_DISABLE_MSVC_WARNING_END (4305 )
775
783
776
784
ASSERT_EQUAL (true , d[0 ]);
777
785
You can’t perform that action at this time.
0 commit comments