diff options
Diffstat (limited to 'libbuild2/file-cache.hxx')
-rw-r--r-- | libbuild2/file-cache.hxx | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/libbuild2/file-cache.hxx b/libbuild2/file-cache.hxx index d6904ed..98c2b67 100644 --- a/libbuild2/file-cache.hxx +++ b/libbuild2/file-cache.hxx @@ -92,7 +92,12 @@ namespace build2 // to the noop implementation. // explicit - file_cache (bool compress = true); + file_cache (bool compress); + + file_cache () = default; // Create uninitialized instance. + + void + init (bool compress); class entry; @@ -114,9 +119,9 @@ namespace build2 // Move-to-NULL-only type. // - write (write&&); + write (write&&) noexcept; write (const write&) = delete; - write& operator= (write&&); + write& operator= (write&&) noexcept; write& operator= (const write&) = delete; ~write (); @@ -140,9 +145,9 @@ namespace build2 // Move-to-NULL-only type. // - read (read&&); + read (read&&) noexcept; read (const read&) = delete; - read& operator= (read&&); + read& operator= (read&&) noexcept; read& operator= (const read&) = delete; ~read (); @@ -203,9 +208,9 @@ namespace build2 // Move-to-NULL-only type. // - entry (entry&&); + entry (entry&&) noexcept; entry (const entry&) = delete; - entry& operator= (entry&&); + entry& operator= (entry&&) noexcept; entry& operator= (const entry&) = delete; ~entry (); |