c++11 - Forbid linking against a c++ method -


i try forbid use of method, have compile error if piece of code use it.

this proprietary legacy module, know methods problematic. have headers files, , dlls.

i can't figure out use of method in huge project use (lot of defines, implicit cast...)

can compiler stop (or warn) if detect use of method?

you can use __declspec(deprecated) in visual c++ generate warnings use of specific function. can use #pragma deprecated deprecate usage of symbol (including macros).

see more information on msdn. can generate warnings or errors (depending on computer flags) can supress them needed additional #pragmas


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -