From ee583454f6f9e5e3c320d0a8e6dc18082ffed07d Mon Sep 17 00:00:00 2001 From: Alisdair Meredith Date: Wed, 8 Jun 2016 09:14:16 -0400 Subject: [PATCH] [string.view.comparison] Fix index for basic_string_view operators The first issue is that operator<< does not group in the index with other definitions for operator<<, which use an index key of operator\shl. The second issue is that operator<< was the only operator indexed under the 'basic_string_view' key, where the precedent fro basic_string and other types is that the free-function operators are still indexed under their respective class entry. --- source/strings.tex | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/strings.tex b/source/strings.tex index efab4fbd3a..9f531bacf7 100644 --- a/source/strings.tex +++ b/source/strings.tex @@ -5363,6 +5363,7 @@ \exitexample \indexlibrary{\idxcode{operator==}!\idxcode{basic_string_view}}% +\indexlibrary{\idxcode{basic_string_view}!\idxcode{operator==}}% \begin{itemdecl} template constexpr bool operator==(basic_string_view lhs, @@ -5376,6 +5377,7 @@ \end{itemdescr} \indexlibrary{\idxcode{operator!=}!\idxcode{basic_string_view}}% +\indexlibrary{\idxcode{basic_string_view}!\idxcode{operator!=}}% \begin{itemdecl} template constexpr bool operator!=(basic_string_view lhs, @@ -5389,6 +5391,7 @@ \end{itemdescr} \indexlibrary{\idxcode{operator<}!\idxcode{basic_string_view}}% +\indexlibrary{\idxcode{basic_string_view}!\idxcode{operator<}}% \begin{itemdecl} template constexpr bool operator< (basic_string_view lhs, @@ -5402,6 +5405,7 @@ \end{itemdescr} \indexlibrary{\idxcode{operator>}!\idxcode{basic_string_view}}% +\indexlibrary{\idxcode{basic_string_view}!\idxcode{operator>}}% \begin{itemdecl} template constexpr bool operator> (basic_string_view lhs, @@ -5415,6 +5419,7 @@ \end{itemdescr} \indexlibrary{\idxcode{operator<=}!\idxcode{basic_string_view}}% +\indexlibrary{\idxcode{basic_string_view}!\idxcode{operator<=}}% \begin{itemdecl} template constexpr bool operator<=(basic_string_view lhs, @@ -5428,6 +5433,7 @@ \end{itemdescr} \indexlibrary{\idxcode{operator>=}!\idxcode{basic_string_view}}% +\indexlibrary{\idxcode{basic_string_view}!\idxcode{operator>=}}% \begin{itemdecl} template constexpr bool operator>=(basic_string_view lhs, @@ -5442,7 +5448,8 @@ \rSec2[string.view.io]{Inserters and extractors} -\indexlibrary{\idxcode{operator<<}!\idxcode{basic_string_view}}% +\indexlibrary{\idxcode{operator\shl}!\idxcode{basic_string_view}}% +\indexlibrary{\idxcode{basic_string_view}!\idxcode{operator\shl}}% \begin{itemdecl} template basic_ostream&