David, would you accept a template class wrapping a non-null pointer,
perhaps non_null_ptr<T>?  Conversion to a raw pointer would be implicit,
but construction from a raw pointer would be explicit.  The person
constructing such a pointer is responsible for ensuring that it is not
null.  The person who uses such a pointer trusts that it is not.

That would retain the pointers that you value and add the nullness
information that I value.

https://codereview.appspot.com/341150043/

_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to