Skip to content

BOOST_OPENMETHOD: move return type to signature if possible #10

Closed

Description

@jll63

BOOST_OPENMETHOD(poke, (std::ostream& a, virtual_ptr<Animal> b) -> void)

Activity

  1. jll63 commented on May 19, 2025

    @jll63
    CollaboratorAuthor
    #include <string>
    #include <tuple>
    
    template<typename> struct test{};
    
    using foo = test<auto (int)->std::string>;
    using bar = test<auto (int)->std::tuple<int>>; // MSVC fails on this
    using baz = test<auto (int)->decltype(std::tuple<int>())>;

    https://godbolt.org/z/MrbdYbW9Y

  2. jll63 commented on May 25, 2025

    @jll63
    CollaboratorAuthor

    #23 for method only. Not decided about changing the macros yet.

  3. locked and limited conversation to collaborators on Jun 19, 2025
  4. converted this issue into a discussion #32 on Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions