From 0456c71378513f18a0b6a4c6c1da59516b72975e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 24 Nov 2018 14:47:53 +0200 Subject: Reimplement depdb with fdstreams --- build2/depdb.ixx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'build2/depdb.ixx') diff --git a/build2/depdb.ixx b/build2/depdb.ixx index c8b187d..46fdb28 100644 --- a/build2/depdb.ixx +++ b/build2/depdb.ixx @@ -4,6 +4,15 @@ namespace build2 { + inline depdb_base:: + ~depdb_base () + { + if (state_ != state::write) + is_.~ifdstream (); + else + os_.~ofdstream (); + } + #ifndef BUILD2_MTIME_CHECK inline void depdb:: verify (const path_type&, timestamp) -- cgit v1.1