From 04511e1c0d15718cbcb25a9467f24ff31bf5cbb7 Mon Sep 17 00:00:00 2001 From: Hewill Kang <67143766+hewillk@users.noreply.github.com> Date: Fri, 29 Jul 2022 14:50:06 +0800 Subject: [PATCH] [range.join.with.overview, range.split.overview] use fully-qualified name --- source/ranges.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ranges.tex b/source/ranges.tex index 4e5c1763a1..c1b1795099 100644 --- a/source/ranges.tex +++ b/source/ranges.tex @@ -6136,7 +6136,7 @@ \begin{example} \begin{codeblock} vector vs = {"the", "quick", "brown", "fox"}; -for (char c : vs | join_with('-')) { +for (char c : vs | views::join_with('-')) { cout << c; } // The above prints \tcode{the-quick-brown-fox} @@ -7278,7 +7278,7 @@ \begin{example} \begin{codeblock} string str{"the quick brown fox"}; -for (string_view word : split(str, ' ')) { +for (string_view word : views::split(str, ' ')) { cout << word << '*'; } // The above prints \tcode{the*quick*brown*fox*}