matt-42 / iod

Meta programming utilities for C++14. Merged in matt-42/lithium
MIT License
727 stars 58 forks source link

symbol attributes assignee types #28

Open lythesia opened 5 years ago

lythesia commented 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]() { ... }

thanks!

lythesia commented 5 years ago

It seems that functor can be used here

snawaz commented 5 years ago

You can find the answer to this question by trying it out. Write a simple code, compile and run.