Skip to content

Overloaded signatures don't seem to work or be tested #18

@Quuxplusone

Description

@Quuxplusone

https://godbolt.org/z/RcyhgH

#include <cxx_function.hpp>

int foo(int);

cxx_function::function<int(), int(int)> f = foo;
cxx_function::function<int(int), int()> g = foo;

My impression from the README is that this code is supposed to compile. It doesn't.
I don't see any test cases in test/ that try to use multiple signatures, so my working hypothesis is that the README is simply over-optimistically out-of-sync with what's actually implemented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions