[PATCH] D37994: Implement LWG2946: More ambiguity in `string` vs. `string_view`

Marshall Clow via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 7 14:04:15 PST 2018


mclow.lists updated this revision to Diff 137474.
mclow.lists added a comment.

Added the proposed resolution for https://wg21.link/lwg3075 as well, and some deduction guide tests for `string_view`


https://reviews.llvm.org/D37994

Files:
  include/string
  test/std/strings/basic.string/string.cons/iter_alloc_deduction.pass.cpp
  test/std/strings/basic.string/string.cons/string_view.pass.cpp
  test/std/strings/basic.string/string.cons/string_view_assignment.pass.cpp
  test/std/strings/basic.string/string.cons/string_view_deduction.fail.cpp
  test/std/strings/basic.string/string.cons/string_view_deduction.pass.cpp
  test/std/strings/basic.string/string.modifiers/string_append/string_view.pass.cpp
  test/std/strings/basic.string/string.modifiers/string_assign/string_view.pass.cpp
  test/std/strings/basic.string/string.modifiers/string_insert/string_view.pass.cpp
  test/std/strings/basic.string/string.modifiers/string_op_plus_equal/string.pass.cpp
  test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_string_view.pass.cpp
  test/std/strings/basic.string/string.modifiers/string_replace/size_size_string_view.pass.cpp
  test/std/strings/basic.string/string.ops/string_compare/size_size_string_view.pass.cpp
  test/std/strings/basic.string/string.ops/string_compare/string_view.pass.cpp
  test/std/strings/basic.string/string.ops/string_find.first.not.of/string_view_size.pass.cpp
  test/std/strings/basic.string/string.ops/string_find.first.of/string_view_size.pass.cpp
  test/std/strings/basic.string/string.ops/string_find.last.not.of/string_view_size.pass.cpp
  test/std/strings/basic.string/string.ops/string_find.last.of/string_view_size.pass.cpp
  test/std/strings/basic.string/string.ops/string_find/string_view_size.pass.cpp
  test/std/strings/basic.string/string.ops/string_rfind/string_view_size.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37994.137474.patch
Type: text/x-patch
Size: 47418 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180307/88edc35f/attachment-0001.bin>


More information about the cfe-commits mailing list