How to Bypass a Standard C++ Function While Maintaining Its Functionality

前端 未结 7 860
迷失自我
迷失自我 2021-01-24 03:03

I am looking for a way to be able to redefine a set of POSIX functions but then end the redefinition with a call to the original function. The idea is that I am trying to create

7条回答
  •  广开言路
    2021-01-24 03:11

    No, cannot be done in C++. What you want is more akin to a LISP (or derivative) language, where you can grab the slot for an existing function and 'override it in place', potentially punting back to the original implementation.

提交回复
热议问题