[range] Fixed a bug in join_iterator where joining a const range and a non-const range led to a compiler error (refs #8483).

[SVN r85400]
This commit is contained in:
Nathan Ridge
2013-08-20 06:06:12 +00:00
parent b0c1cf556f
commit b4f00e3c18
2 changed files with 19 additions and 2 deletions

View File

@ -143,8 +143,12 @@ template<typename Iterator1
typename iterator_reference<Iterator2>::type
>::type
>::value,
typename add_const<
typename iterator_reference<Iterator2>::type
typename add_reference<
typename add_const<
typename remove_reference<
typename iterator_reference<Iterator2>::type
>::type
>::type
>::type,
typename iterator_reference<Iterator1>::type
>::type