Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Vertex
- {
- Vec2 a, b;
- };
- std::vector<Vertex> t1(1);
- std::vector<Vec2> t2(1);
- Vec2* proxy = &t2[0]; // legal
- proxy = &t1[0].a; // UB?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement