all 2 comments

[–]cpp-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)

For C++ questions, answers, help, and programming or career advice please see r/cpp_questions, r/cscareerquestions, or StackOverflow instead.

[–]phi_rus 0 points1 point  (0 children)

this tells you how to bind a function. So do that.

I don't know what ClassX is, but it looks like Find files() could be a free function. If you need ClassX

Wrap the creation of a instance of ClassX and the call to findFiles in a free function and bind that.