In template functions (funnily not in functions) a rapidjson::Pointer is mistakenly recognized as a C+±Pointer and so SonarLint mistakenly detects the bug S1767 (see screenshot).
by looking at the reproducer it seems that during the analysis of OpcUaCmdLogger.h we are not able to find pch.h file, causing a series of parsing errors. The first comes from the first header Errorcodes.h using std::string and not being declared at that time due to pch.h not found.
the pch.h is set to be forced included for the entire project, hence it is used for the header file too.
If we forget about that, your header file is currently not compilable by itself as explained in the previous answer, having Errorcodes.h using std::string and not including string.