Open lythesia opened 5 years ago
Can symbol's attributes value be lambda or std::bind objects? like: _id(_some_handle=[]() { ... } and can we access the sio(or symbol) within the lambda? like: _id(_some_handle=[this]() { ... }
_id(_some_handle=[]() { ... }
_id(_some_handle=[this]() { ... }
thanks!
It seems that functor can be used here
You can find the answer to this question by trying it out. Write a simple code, compile and run.
Can symbol's attributes value be lambda or std::bind objects? like:
_id(_some_handle=[]() { ... }
and can we access the sio(or symbol) within the lambda? like:_id(_some_handle=[this]() { ... }
thanks!