From 175304beaf979dd5440a2ba367b4291d8df279fc Mon Sep 17 00:00:00 2001 From: hawk2411 Date: Fri, 10 Jun 2022 15:49:29 +0200 Subject: [PATCH 1/2] fixed the 'hashed_index' issue. --- VS2017/Visualizers/boost_MultiIndex.natvis | 59 +++++++++++---------- VS2019/Visualizers/boost_MultiIndex.natvis | 60 +++++++++++----------- 2 files changed, 58 insertions(+), 61 deletions(-) diff --git a/VS2017/Visualizers/boost_MultiIndex.natvis b/VS2017/Visualizers/boost_MultiIndex.natvis index 23517c3..3743550 100644 --- a/VS2017/Visualizers/boost_MultiIndex.natvis +++ b/VS2017/Visualizers/boost_MultiIndex.natvis @@ -54,39 +54,38 @@ - - {{ size={(($T3*)this)->node_count} }} + + {{ size={ (($T2*)this)->node_count } ende }} - (($T3*)this)->buckets.spc.n_ - 1 - (($T3*)this)->max_load - (($T3*)this)->mlf - (($T3*)this)->eq_ - (($T3*)this)->hash_ + (($T2*)this)->buckets.spc.n_ - 1 + (($T2*)this)->max_load + (($T2*)this)->mlf + (($T2*)this)->eq_ + (($T2*)this)->hash_ - - - - - - - - - - NodePtr = (boost::multi_index::detail::hashed_index_node_trampoline<$T1>*)((((($T3*)this)->buckets.spc.data_ + BucketIndex))->prior_) - - - - *reinterpret_cast<$T3::value_type*>(&(((boost::multi_index::detail::hashed_index_node<$T1,$T2>*)NodePtr))->space) - - - - NodePtr = (boost::multi_index::detail::hashed_index_node_trampoline<$T1>*)(NodePtr->next_) - - - - ++BucketIndex - + + + + + + + + + + NodePtr = (boost::multi_index::detail::hashed_index_node_trampoline<$T1>*)((((($T2*)this)->buckets.spc.data_ + BucketIndex))->prior_) + + + + *reinterpret_cast<$T2::value_type*>(&(((boost::multi_index::detail::hashed_index_node<$T1>*)NodePtr))->space) + + + NodePtr = (boost::multi_index::detail::hashed_index_node_trampoline<$T1>*)(NodePtr->next_) + + + + ++BucketIndex + diff --git a/VS2019/Visualizers/boost_MultiIndex.natvis b/VS2019/Visualizers/boost_MultiIndex.natvis index 23517c3..6c97e2d 100644 --- a/VS2019/Visualizers/boost_MultiIndex.natvis +++ b/VS2019/Visualizers/boost_MultiIndex.natvis @@ -54,41 +54,39 @@ - - {{ size={(($T3*)this)->node_count} }} + + {{ size={ (($T2*)this)->node_count } ende }} - (($T3*)this)->buckets.spc.n_ - 1 - (($T3*)this)->max_load - (($T3*)this)->mlf - (($T3*)this)->eq_ - (($T3*)this)->hash_ + (($T2*)this)->buckets.spc.n_ - 1 + (($T2*)this)->max_load + (($T2*)this)->mlf + (($T2*)this)->eq_ + (($T2*)this)->hash_ - - - - - - - - - - NodePtr = (boost::multi_index::detail::hashed_index_node_trampoline<$T1>*)((((($T3*)this)->buckets.spc.data_ + BucketIndex))->prior_) - - - - *reinterpret_cast<$T3::value_type*>(&(((boost::multi_index::detail::hashed_index_node<$T1,$T2>*)NodePtr))->space) - - - - NodePtr = (boost::multi_index::detail::hashed_index_node_trampoline<$T1>*)(NodePtr->next_) - - - - ++BucketIndex - + + + + + + + + + + NodePtr = (boost::multi_index::detail::hashed_index_node_trampoline<$T1>*)((((($T2*)this)->buckets.spc.data_ + BucketIndex))->prior_) + + + + *reinterpret_cast<$T2::value_type*>(&(((boost::multi_index::detail::hashed_index_node<$T1>*)NodePtr))->space) + + + NodePtr = (boost::multi_index::detail::hashed_index_node_trampoline<$T1>*)(NodePtr->next_) + + + + ++BucketIndex + - From 928b3759361d4bec06ba71ba57a618f60739744a Mon Sep 17 00:00:00 2001 From: hawk2411 Date: Fri, 10 Jun 2022 15:59:17 +0200 Subject: [PATCH 2/2] removed a typo --- VS2017/Visualizers/boost_MultiIndex.natvis | 2 +- VS2019/Visualizers/boost_MultiIndex.natvis | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VS2017/Visualizers/boost_MultiIndex.natvis b/VS2017/Visualizers/boost_MultiIndex.natvis index 3743550..4df9e63 100644 --- a/VS2017/Visualizers/boost_MultiIndex.natvis +++ b/VS2017/Visualizers/boost_MultiIndex.natvis @@ -55,7 +55,7 @@ - {{ size={ (($T2*)this)->node_count } ende }} + {{ size={ (($T2*)this)->node_count } }} (($T2*)this)->buckets.spc.n_ - 1 diff --git a/VS2019/Visualizers/boost_MultiIndex.natvis b/VS2019/Visualizers/boost_MultiIndex.natvis index 6c97e2d..dc91907 100644 --- a/VS2019/Visualizers/boost_MultiIndex.natvis +++ b/VS2019/Visualizers/boost_MultiIndex.natvis @@ -55,7 +55,7 @@ - {{ size={ (($T2*)this)->node_count } ende }} + {{ size={ (($T2*)this)->node_count } }} (($T2*)this)->buckets.spc.n_ - 1