Also, clarify a comment while at it.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
The comment part is fine.
I am not sure how much more useful asserts are than segmentation faults. How about passing in const references? That way ubsan should be able to catch it as soon as an invalid reference is constructed (I think).
Comment Actions
r248032 fixes the comment, I would like to think about changing to const references a little bit more. Abandoning this for now.