[mythtv] This piece of code is driving me nuts!

mythtv at phipps-hutton.freeserve.co.uk mythtv at phipps-hutton.freeserve.co.uk
Sat Nov 19 10:59:51 UTC 2016


Quoting Roger James <roger at beardandsandals.co.uk>:

> Doh!!!! My bad. I misread the std::vector docs. The first resize  
> will always be smaller than the second, and the second only  
> initialises the ones it adds. I am an idiot!
>
No you're not an idiot but I bet you wish there was a comment in the  
code to have explained what was the intention of the code was.

Comments are good, they help people that are not you.

Cheers,
Tim.




More information about the mythtv-dev mailing list