Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

C++ libraries: Is there an efficient way to unite the native types of different libraries via #define or other?

right now i have a task where i need to work with several different libraries which all use their own native types (e.g. UaString, QString, UaInt16, int8_t, etc...)(here's why they exist). I was wondering if there is a smart way to deal with all those types other than just converting them over and over all the time. For example, creating a type that all libraries will accept or using a conditional #define which will perform the correct conversion everytime onne of the types is needed. I'm not that experienced yet, so maybe there is a very simple way i don't know yet.

Comments