Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 319 Bytes
#pragma once
#include "stdafx.h"
class DestThrow {
public:
~DestThrow() {
// this is generally not allowed but it may pass if
// no other exception is currently happening
throw std::runtime_error("oops");
}
};
void DoubleException() {
DestThrow resource;
throw std::invalid_argument("first exception");
}