From af54239018d685fb29cc1e8caba808ebf302a90a Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 19 Apr 2023 01:40:12 +0300 Subject: [PATCH] Workaround MSVC 2015 compilation error. --- tdutils/td/utils/FlatHashTable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tdutils/td/utils/FlatHashTable.h b/tdutils/td/utils/FlatHashTable.h index 3cc4458ff..d2a7d84c1 100644 --- a/tdutils/td/utils/FlatHashTable.h +++ b/tdutils/td/utils/FlatHashTable.h @@ -51,7 +51,7 @@ class FlatHashTable { struct Iterator { using iterator_category = std::forward_iterator_tag; using difference_type = std::ptrdiff_t; - using value_type = FlatHashTable::value_type; + using value_type = typename NodeT::public_type; using pointer = value_type *; using reference = value_type &; @@ -108,7 +108,7 @@ class FlatHashTable { struct ConstIterator { using iterator_category = std::forward_iterator_tag; using difference_type = std::ptrdiff_t; - using value_type = FlatHashTable::value_type; + using value_type = typename NodeT::public_type; using pointer = const value_type *; using reference = const value_type &;