weak_ptr example
examples with compiler errors