vendredi 29 mai 2015

Forbide linking against a c++ method

I try to forbide the use of a method, to have a compile error if some piece of code use it.

This is a proprietary legacy module, that I know that some methods are problematic. We have headers files, and dlls.

I can't figure out all the use of this method in the huge project I use (lot of defines, some implicit cast...)

Can the compiler stop (or just warn) if it detect the use of this method?

Aucun commentaire:

Enregistrer un commentaire