e.g.,
http://stackoverflow.com/questions/130117/throwing-exceptions-out-of-a-destructor

in general, it is considered bad practice to have throwable code in
destructors.


On Wed, Mar 12, 2014 at 9:10 AM, Anthony Scopatz
<notifications@github.com>wrote:

> In src/csv_back.cc:
>
> > @@ -25,6 +25,10 @@
> >    fs::create_directory(path);
> >  }
> >
> > +CsvBack::~CsvBack() {
> > +  Flush();
>
> Why do you say that? The destructor is exactly where you need to call
> flush.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/cyclus/cyclus/pull/767/files#r10518404>
> .
>



-- 
Matthew Gidden
Ph.D. Candidate, Nuclear Engineering
The University of Wisconsin -- Madison
Ph. 225.892.3192