12
4

1 回答 1

9

I don't think there's any way this can be achieved. The default argument values are not part of the function signature. They're only code-generation short-hands that are expanded by the compiler when you call the function literally. Similarly, std::bind won't pick up default arguments, either.

于 2011-11-25T19:48:06.780 回答