From 82dfdf8e7836246390b0095174904e4bfdedbf68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Tue, 19 Oct 2021 16:12:10 +0200 Subject: [PATCH] Fixes #44 ("Unused local type error with warnings-as-errors=on variant=release") --- include/boost/move/algo/detail/adaptive_sort_merge.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/boost/move/algo/detail/adaptive_sort_merge.hpp b/include/boost/move/algo/detail/adaptive_sort_merge.hpp index acd85c8..4af5c9b 100644 --- a/include/boost/move/algo/detail/adaptive_sort_merge.hpp +++ b/include/boost/move/algo/detail/adaptive_sort_merge.hpp @@ -1023,7 +1023,6 @@ void op_merge_blocks_left , Compare comp, Op op) { typedef typename iterator_traits::size_type size_type; - typedef typename iterator_traits::difference_type difference_type; size_type const key_count = needed_keys_count(n_block_a, n_block_b); boost::ignore_unused(key_count); @@ -1079,7 +1078,7 @@ void op_merge_blocks_left (!is_buffer_middle && size_type(first1-buffer) == l_block && first2 == last1)); if(is_range1_A == is_range2_A){ - BOOST_ASSERT((first1 == last1) || !comp(*first_min, last1[difference_type(-1)])); + BOOST_ASSERT((first1 == last1) || !comp(*first_min, last1[typename iterator_traits::difference_type(-1)])); if(!is_buffer_middle){ buffer = op(forward_t(), first1, last1, buffer); }