Overload -> operator to forward member-access through Proxy

前端 未结 3 756
南方客
南方客 2021-01-13 04:16

I\'m trying to wrap a Python PyObject* in an Object class. In Python, everything is a PyObject*. A list is a PyObject*, a

3条回答
  •  余生分开走
    2021-01-13 05:18

    After several hours of coaxing coliru, I have a working testcase.

    Please refer to: https://codereview.stackexchange.com/questions/75237/c11-proxy-pattern-for-supporting-obidx-someobjmember-type-acc

    Many thanks to Jarod, for supplying the correct syntax and understanding for -> overload.

提交回复
热议问题