Initializer List and Ambiguous Overloads with 3.1.4
If you have started getting compilation errors about “ambiguous overload” after updating to wxWidgets 3.1.4, you have unfortunately run into this bug which got inadvertently introduced in this version, while trying to make wxWidgets array classes more comfortable to use. The problem happens whenever you have a function overloaded to take more than one class that can be implicitly constructed from std::initializer_list<> , e.g. void DoSomethingWithString ( const std :: vector < wxString >& strings ); void Do
评论
?
参与讨论