Commit c349d642 authored by Sanjoy Das's avatar Sanjoy Das Committed by TensorFlower Gardener
Browse files

Change c_find and c_adjacent_find to take a ref and not a const ref

This prevents this footgun:

  auto it = c_find(CreateTemporaryVector());
  // `it` is now dangling

PiperOrigin-RevId: 204020720
parent a1a66fd4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment