Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #include <array>
  2. #include <boost/container/static_vector.hpp>
  3.  
  4. struct X {
  5. int k;
  6. std::array<int, 4> a;
  7. boost::container::static_vector<int, 4> b;
  8. ~X() = default;
  9. };
  10.  
  11. int huh()
  12. {
  13. std::array<X, 5> x;
  14. return 0;
  15. }
  16.  
  17. #include <array>
  18. #include <boost/container/static_vector.hpp>
  19.  
  20. struct Y {
  21. ~Y();
  22. };
  23.  
  24. struct X {
  25. int k;
  26. std::array<int, 4> a;
  27. boost::container::static_vector<Y, 4> b;
  28. ~X() = default;
  29. };
  30.  
  31. int huh()
  32. {
  33. std::array<X, 5> x;
  34. return 0;
  35. }
  36.  
  37. add rbx, 1
  38. call Y::~Y() [complete object destructor]
  39. cmp rbx, r12
  40. jne .L3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement