For certain reasons we should not use certain std functions like std::sort()
in our code base (we have our own implementations for those).
Is there a way to prevent calls to those functions, preferably by raising an error at compile time?
I looked at overriding std functions but it leads to undefined behavior.