From 42a7c506c2d6af046154c86f10a8b7f7390b6bb9 Mon Sep 17 00:00:00 2001 From: ITHelpDec <34002836+ITHelpDec@users.noreply.github.com> Date: Sat, 27 May 2023 20:55:38 +0100 Subject: [PATCH] `bucket_iterator` -> `auto` - `bucket_iterator` typedef does not exist in scope of our map class, but of the sub-class `bucket_type` - must declare `.get_map()` as a friend within `bucket_type` to allow access to private members --- listings/listing_6.12.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/listings/listing_6.12.cpp b/listings/listing_6.12.cpp index bea7403..9ee99a2 100644 --- a/listings/listing_6.12.cpp +++ b/listings/listing_6.12.cpp @@ -17,7 +17,7 @@ std::map threadsafe_lookup_table::get_map() const std::map res; for(unsigned i=0;i