Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <array>
- #include <boost/container/static_vector.hpp>
- struct X {
- int k;
- std::array<int, 4> a;
- boost::container::static_vector<int, 4> b;
- ~X() = default;
- };
- int huh()
- {
- std::array<X, 5> x;
- return 0;
- }
- #include <array>
- #include <boost/container/static_vector.hpp>
- struct Y {
- ~Y();
- };
- struct X {
- int k;
- std::array<int, 4> a;
- boost::container::static_vector<Y, 4> b;
- ~X() = default;
- };
- int huh()
- {
- std::array<X, 5> x;
- return 0;
- }
- add rbx, 1
- call Y::~Y() [complete object destructor]
- cmp rbx, r12
- jne .L3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement