Created
January 9, 2019 08:24
-
-
Save AntonKueltz/096bb5e3bc4c98ff82212510588b9a43 to your computer and use it in GitHub Desktop.
This file contains 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