Created
January 9, 2019 08:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <vector> | |
class Bad { | |
public: | |
~Bad(){ throw 0; } | |
}; | |
int main() { | |
Bad b1, b2; | |
std::vector<Bad> container; | |
container.push_back(b1); // add b1 to container | |
container.push_back(b2); // add b2 to container | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment