I am porting a C++ project that was using version 6 of the SDK to version 14.2 (big leap, I know). I want to use all the new bells and whistles from the new SDK that makes life easier, but I am getting some errors when wanting to emulate what is being done in the example code.
I am having a problem with this macro in particular:
NRF_SDH_SOC_OBSERVER()
When I try C++ compiling a macro that contains the one above, it gives me this error:
BLE_ADVERTISING_DEF(m_advertising);
../../nRF5_SDK_14.2.0_17b948a/components/ble/ble_advertising/ble_advertising.h:79:21: error: expected constructor, destructor, or type conversion before '(' token
Is there a proper way to use these macros in C++ or am I SOL?