Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support of lambdas to get_signature #36

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

nevion
Copy link
Contributor

@nevion nevion commented Aug 16, 2015

see #34
This does not entirely add support for lambda's, but does make it work for get_signature

Presently there is this error (in detail::invoke) when passing a lambda :
https://gist.github.com/nevion/bb90bb9a9b0f7071dbf2

I'm not sure how to proceed with this and will wait for some insights.

It also depends on a type trait that is better off in the type_traits or function_types libraries, and while it looks good it is hard to know if it works in every situation though should always suffice for lambdas - so there may be some justification for keeping it local, at least in the near term.

Also: in ripping out all the macros for pre c++11 support, I probably broke something for older C++03 or lower. But given how hard they are to understand and the pain of not using C++11 with boost.... I'm not sure I really would want to go down the road of trying to support those compilers. On the other hand, I ended up, to my knowledge, not using any C++11 with a potential exception of forwarding with boost::forward. All the sub-libraries used already deal with the gory details. I also did it in such a way that it was drop in switchable, maybe unnecessarily.

stefanseefeld pushed a commit to stefanseefeld/boost.python that referenced this pull request Oct 4, 2016
SCons change to build a static lib for Windows
stefanseefeld pushed a commit to stefanseefeld/boost.python that referenced this pull request Oct 8, 2016
SCons change to build a static lib for Windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant