Hi Owen,
just read the boost.optional doc. And it is relay a nice concept.
Currently we have no boost dependencies in Mixxx, so one question is:
Should we use boost. IMHO there is no strong demand, because Qt itself
implements the most important functions from Boost and if we step up to
c++11 there comes an other portion of boost.
In this particular case I think it would be overdone, because the CO will
exist in most cases and when it is expected that it is not he case,
getObject can be called before.
Btw. I don't like these static get and set function, because they are slow
due to the hash table look up. On of the next iteration is to remove them
at frequently called places.
Kind regards,
Daniel
2013/6/29 Owen Williams <owilli...@mixxx.org>
> What's the current thinking about using boost::optional for this sort of
> thing?
>
> On Fri, 2013-06-28 at 14:00 -0700, RJ Ryan wrote:
> > LGTM -- it may be useful to provide a default value or a bool* that is
> > set if the control existed or not but whoever needs that first can add
> > it.
> >
> > —
> > Reply to this email directly or view it on GitHub.
> >
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Get Mixxx, the #1 Free MP3 DJ Mixing software Today
> http://mixxx.org
>
>
> Mixxx-devel mailing list
> Mixxx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mixxx-devel
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Get Mixxx, the #1 Free MP3 DJ Mixing software Today
http://mixxx.org
Mixxx-devel mailing list
Mixxx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mixxx-devel