rogue-wave

How do I abstract away from using RogueWave in legacy code?

梦想的初衷 提交于 2019-12-12 13:28:13
问题 I have been tasked with removing RogueWave components from a legacy C++ codebase. To do so, I am attempting to build wrappers around the existing components, make sure that the code functions the same, and then choose a different library like boost to stick into the wrappers. One of the problems I am coming against is that much of the codebase expects pointers to RogueWave objects. I can create a dummy Wrapper Object class that points to the original RogueWave object, but I cannot figure out

Why am I getting a namespace identifier error?

人走茶凉 提交于 2019-12-11 01:37:52
问题 I am using Keil uVision and I keep getting this error: C:\Keil_v5\ARM\ARMCC\bin\..\include\rw/_defs.h(781): error: #20: identifier "namespace" is undefined What could lead to this error? Isn´t namespace automatically defined? 回答1: It looks like you are using C compilation for C++ code - check the compiler options. In C++ namespace is a reserved word, but not in C, so the compiler will try to interpret it as an identifier rather than a keyword - which will then of course make no sense