Member-Function Pointers With Default Arguments

后端 未结 4 1527
走了就别回头了
走了就别回头了 2021-01-03 01:03

I am trying to create a pointer to a member function which has default arguments. When I call through this function pointer, I do not want to specify an argument for the de

4条回答
  •  无人及你
    2021-01-03 01:50

    This is not possible given the constraints. Your options are:

    1. Using function wrappers.
    2. Using Functors.

    Check out Boost for some handy tools to simplify this.

提交回复
热议问题