On Wed, 15 May 2019 20:00:37 -0400
Ted Felix <t...@tedfelix.com> 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.

So far so good {fingers crossed}

Will J Godfrey
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
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe

Reply via email to