Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. struct Vertex
  2. {
  3. Vec2 a, b;
  4. };
  5. std::vector<Vertex> t1(1);
  6. std::vector<Vec2> t2(1);
  7.  
  8. Vec2* proxy = &t2[0]; // legal
  9. proxy = &t1[0].a; // UB?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement