Код: Выделить всё
template Key getChoiceWidgetSelection(wxChoice& choiceWidget, bool *ok) {
Key ret;
*ok = false;
void *clientdata = choiceWidget.GetClientData( choiceWidget.GetSelection() );
if ( clientdata != nullptr ) {
*ok = true;
ret = *static_cast(clientdata);
}
return ret;
}
Как я могу предотвратить это предупреждение компилятора?
Подробнее здесь: https://stackoverflow.com/questions/796 ... exact-type