On Wed, 15 May 2019 20:00:37 -0400
Ted Felix <[email protected]> wrote:
>On 5/15/19 2:36 PM, Will Godfrey wrote:
>> My understanding is that nullptr is the 'modern' replacement for NULL, so I
>> can't see why it would fail.
>
> It is.
>
> In this case, the older version of QSharedPointer provides no way for
>the compiler to convert a nullptr (which is actually a nullptr_t) to a
>QSharedPointer which operator= requires. It's a bit convoluted and only
>happens in rare situations. QSharedPointer prior to Qt 5.8 is
>unfortunately one of those situations.
>
> Gorey details are attached in a small test program.
>
>> As a cross-check I tried changing a few old-style NULL with nullptr in
>> Yoshimi, and it compiled without complaint, so I'm quite lost now :(
>
> In most cases, nullptr is a drop-in replacement for NULL.
>
>Ted.
So far so good {fingers crossed}
--
Will J Godfrey
http://www.musically.me.uk
Say you have a poem and I have a tune.
Exchange them and we can both have a poem, a tune, and a song.
_______________________________________________
Rosegarden-user mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user