StreamConstPtr: disallow passing a String temporary by d-a-v · Pull Request #8410 · esp8266/Arduino

added 4 commits

December 15, 2021 11:25
(warning: deleting object of abstract class type 'Stream' which has non-virtual destructor will cause undefined behavior [-Wdelete-non-virtual-dtor])

@d-a-v d-a-v added this to the 3.1 milestone

Dec 15, 2021

@d-a-v

@d-a-v d-a-v deleted the streamconstptrNotemporary branch

January 3, 2022 12:42

hasenradball pushed a commit to hasenradball/Arduino that referenced this pull request

Nov 18, 2024
* StreamConstPtr: prevent from passing a temporary String instance
* unconditionally allow progmem chars
* missing virtual destructor in Stream
(warning: deleting object of abstract class type 'Stream' which has non-virtual destructor will cause undefined behavior [-Wdelete-non-virtual-dtor])