Version française
Home     About     Download     Resources     Contact us    
Browse thread
exception safety / RAII ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Stefan Monnier <monnier@i...>
Subject: Re: exception safety / RAII ?
> In most cases you probably won't care when a file is closed after writing to
> it, so you can just rely on the garbage collector.

Very bad practice in (e.g.) an NFS world where the filesystem makes no
guarantee about file writes until you actually close the file.


        Stefan