Problem line: https://github.com/microsoft/cpp_client_telemetry/blame/5068a981e2dc6ebe935e3184c011a1d8edfd6e8a/lib/include/public/ctmacros.hpp#L11
In our project, we have code like:
namespace projectName::PAL {
class Object {};
}
namespace projectName {
PAL::Object; // or projectName::PAL::Object - exact same compiler error message
}
When I #include LogManager.hpp, the compiler reports:
error C2039: 'Object': is not a member of 'Microsoft::Applications::Events::PlatformAbstraction'
This telemetry library should try to avoid global namespace conflicts, of which PAL is one, by appending a prefix like MAT_PAL or similar. Additionally, the library should additionally shy away from utilizing macros as namespaces, such as with PAL::getUtcSystemTimeMs() in the library code.
Problem line: https://github.com/microsoft/cpp_client_telemetry/blame/5068a981e2dc6ebe935e3184c011a1d8edfd6e8a/lib/include/public/ctmacros.hpp#L11
In our project, we have code like:
When I #include LogManager.hpp, the compiler reports:
This telemetry library should try to avoid global namespace conflicts, of which PAL is one, by appending a prefix like MAT_PAL or similar. Additionally, the library should additionally shy away from utilizing macros as namespaces, such as with
PAL::getUtcSystemTimeMs()in the library code.