We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a21183 commit 56ff462Copy full SHA for 56ff462
1 file changed
c++11_cuda/c++11_cuda.cu
@@ -55,7 +55,7 @@ void xyzw_frequency_thrust_device(int *count, char *text, int n)
55
{
56
const char letters[] { 'x','y','z','w' };
57
58
- *count = thrust::count_if(thrust::device, text, text+n, [&](char c) {
+ *count = thrust::count_if(thrust::device, text, text+n, [=](char c) {
59
for (const auto x : letters)
60
if (c == x) return true;
61
return false;
0 commit comments