Функция ожидает возврата CFDictionaryRef:
CFDictionaryRef xyz()
{
CFMutableDictionaryRef test = CFDictionaryCreateMutable(kCFAllocatorDefault, 1, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
CFDictionarySetValue(test, CFSTR("Test"), CFSTR("Test"));
return reinterpret_cast<CFDictionaryRef>(test);
}
Можно ли использовать reinterpret_cast для преобразования? бросает мне нулевой ptr.