Skip to content

Instantly share code, notes, and snippets.

@AntonKueltz
Created January 9, 2019 08:24
Show Gist options
  • Save AntonKueltz/096bb5e3bc4c98ff82212510588b9a43 to your computer and use it in GitHub Desktop.
Save AntonKueltz/096bb5e3bc4c98ff82212510588b9a43 to your computer and use it in GitHub Desktop.
#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