diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-11-24 14:47:53 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-11-24 14:47:53 +0200 |
commit | 0456c71378513f18a0b6a4c6c1da59516b72975e (patch) | |
tree | 1a8cb113658c47277c228363d8b6e2737e84e345 /build2/depdb.ixx | |
parent | 004049afd50ef60860ea0d0da6f5742d66f0ac30 (diff) |
Reimplement depdb with fdstreams
Diffstat (limited to 'build2/depdb.ixx')
-rw-r--r-- | build2/depdb.ixx | 9 |
1 files changed, 9 insertions, 0 deletions
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) |