thing capture error - 'i' is not captured!

What's wrong?

// send status to thing.io
thing["led"] >> [](pson& out){ out = status_id*; };*
It gives:
thing["led"] >> [](pson& out){ out = status_id*; };
_
^_
exit status 1
_
'i' is not captured*_
But I don't want to capture i, i just want the out variable!!!

Please post a small but complete program that demonstrates the error

The error message might not be fully appropriate.

An empty capture clause, [], indicates that the body of the lambda expression accesses no variables in the enclosing scope. that might be your real issue..

I think that after 75 posts, we could expect code tags.