adafruit / Adafruit_DotStar

GNU General Public License v3.0
97 stars 58 forks source link

add empty constructor for some cases #10

Closed mathzol closed 2 years ago

mathzol commented 8 years ago

Add empty constructor cases that if you use the lib as a property of an other class.

yngndrw commented 7 years ago

Is there an example of the scenario where this would be needed ? I can't think of a situation.

By using this empty constructor, the class may be left in an undefined state.

bguest commented 5 years ago

Please merge, here's an example of where you might need an empty constructor. https://github.com/bguest/AcceleratedLED/blob/master/lib/AcceleratedLED328/lib/Strip.h https://github.com/bguest/AcceleratedLED/blob/master/lib/AcceleratedLED328/lib/Strip.cpp

caternuson commented 2 years ago

Closing for now. Generally agree with @yngndrw comment. The class will need to use an existing constructor.