chromium / subspace

A concept-centered standard library for C++20, enabling safer and more reliable products and a more modern feel for C++ code.; Also home of Subdoc the code-documentation generator.
https://suslib.cc
Apache License 2.0
89 stars 15 forks source link

Support function pointers, member pointers, pointers to arrays, and a… #363

Closed danakj closed 1 year ago

danakj commented 1 year ago

…liased of arrays

New test cases:

    void f(int (*p)(float));
    void f(int p(float));
    void f(int (&p)(float));
    void f(int (*&p)(float));
    void f(int (*const *volatile p[3])(float));
    struct S { int D; };
    void f(int S::*const *p);
    struct S { void M(); };
    void f(void (S::*const*p)(float));
    using Array = char[4];
    void f(Array& c);
    struct S {};
    void f(S *const c[3]);
    struct S {};
    void f(S *volatile * (* *const *& c)[3]);