c++qtnulldefaultqlist

NULL return value of type QList<float*>


I would like to return a default Null value for a method returning a QList<float*> (in case processing fails, I want to return).

How to build a Null QList<float*> properly?


Solution

  • In general, there's no such thing as a "null value" for non-pointer types. Options include: