[wx-dev] Re: CVS: [ABX] wxWidgets/src/univ stdrend.cpp, 1.13, 1.14

ABX abx at abx.art.pl
Tue Oct 3 04:37:31 PDT 2006


Vadim Zeitlin <vadim at wxwindows.org>:
> > I think it is somehow related to deeper theory of ?:
>
> Sorry, there is no deeper theory of ?:

I meant if I have:

  wxColour c1,c2;
  wxColour c = (condition) ? c1 : c2;

which part of wxColour class is responsible for moving content from c1 or c2
if there is none operator= nor copy constructor? The content is not referenced
so I guess compiler is doing some raw copying as default and it somehow goes
wrong. I don't exclude compiler error but I'm just unsure where to look for
expected part of code excution in such probably trivial case.

> and if it crashes there must be a
> reason for it. So how exactly can I reproduce the crash?

Current wxCVS with OpenWatcom 1.5. I used:

wmake -h -f makefile.wat SHARED=0 RUNTIME_LIBS=static UNICODE=1 MONOLITHIC=1
USE_GUI=1 BUILD=debug WXUNIV=1 USE_OPENGL=1 USE_ODBC=1

I you prefer I can provide prebuilded minimal sample for you.

ABX




More information about the wx-dev mailing list