gil icon indicating copy to clipboard operation
gil copied to clipboard

Replace apply functions with boost::mp11::mp_with_index

Open mloskot opened this issue 5 years ago • 4 comments
trafficstars

This is one of golden suggestions from @pdimov which I received a while ago and which we need to address:

can't all these apply functions be simplified a lot using mp_with_index? not sure what exactly they do but it looks like it.

/// \brief Given an Boost.MP11-compatible list and a dynamic index n,
/// returns the value of the n-th element.

looks like a one-liner

well, one liner in C++14, unfortunately, will have to be a two-liner here, no polymorphic lambdas :slightly_smiling_face:

mloskot avatar Mar 04 '20 18:03 mloskot

hii,i want to work on this issue. please help me

harshsingh941 avatar Apr 08 '21 14:04 harshsingh941

If you want to work on something, you should rather know how to do it, don't you think so?

mloskot avatar Apr 08 '21 15:04 mloskot

But you can help me with that..

harshsingh941 avatar Apr 08 '21 15:04 harshsingh941

I'm sorry but no resources for babysitting.

If you have very specific issue or question about GIL, then feel free to ask.

mloskot avatar Apr 08 '21 16:04 mloskot