From dd25960e27d2f127e05d9f992eb577bc20e395ab Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 10 Feb 2022 11:52:34 +0200 Subject: Make few global types separately constructible/initializable --- libbuild2/file-cache.hxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libbuild2/file-cache.hxx') diff --git a/libbuild2/file-cache.hxx b/libbuild2/file-cache.hxx index d6904ed..d210685 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; -- cgit v1.1