Coder Social home page Coder Social logo

Comments (4)

stefanseefeld avatar stefanseefeld commented on August 18, 2024

I can't claim to understand the full issue yet, but from looking at the line in question (invoke.hpp:75) it seems the issue is that the A::do_nothing member pointer isn't recognized as a pointer-to-member. I'll have to play around with g++7 to see why that is, i.e. whether boost's own is_member_function_pointer trait yields the wrong value.
Given that you are already using g++7, perhaps you could do that experiment yourself, and tentatively replace boost::is_member_function_pointer by std::is_member_function_pointer.
(It would be a good idea for Boost.Python in general to substitute all the type traits by standard equivalents, when compiling with a C++-11 compiler.)

from python.

Chengifei avatar Chengifei commented on August 18, 2024

The error had gone!(by changing boost:: to std::) Thanks a lot for your advice, and for internal structure of boost.python. But still, don't know how that's related to noexcept... Thanks again!

from python.

stefanseefeld avatar stefanseefeld commented on August 18, 2024

Great. I'v added a new task to do more of that replacement.
I'm glad to see it was that easy. :-)

from python.

jwakely avatar jwakely commented on August 18, 2024

For the record, the problem was due to noexcept being part of the function type in C++17, so traits like is_function need to be enhanced to handle noexcept function types in C++17. Presumably that hadn't been done for the Boost traits.

from python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.