use namespaces?
Aren't namespaces also part of name magling? Or what do you mean?
because it allows for limiting scope on a per namespace level to allow you to manage ambiguity. namespaces are what you use as a programmer. name mangling is what your compiler uses...
Hmm. Can you elaborate on this? My main question is if compiler mangle names for me. Why should I bother myself and use namespaces?
If you are going to load the library, and you are using multiple libs, namespace can help alot.
Namespace a compile-time concept & concern for programmer!! Whereas, mangling is at compiler run-time concept & concern. To void name mangling you can implement “extern “C” {}” for lib exports.
Обсуждают сегодня