[wx-dev] wxFileSelector functions compatibility (was: watcom
template errors)
Vadim Zeitlin
vadim at wxwidgets.org
Sun Jul 1 15:49:41 PDT 2007
On Fri, 29 Jun 2007 20:41:41 +0100 chris elliott <biol75 at york.ac.uk> wrote:
ce> ..\..\include\wx\filedlg.h(244): Error! E455: col(1) function templates
ce> cannot have default arguments
The trouble is that without default parameters in template functions we
have no way (or, at least, no nearly reasonable way) to support passing
NULL to wxFileSelector and related functions. I won't go into the details
but supposing that I don't miss something obvious, we can only drop support
for using NULL in these functions -- people will get compilation error for
the code doing this but will hopefully discover relatively quickly that
they have to replace NULL with wxEmptyString. Do you think this would be
acceptable?
Thanks,
VZ
More information about the wx-dev
mailing list