Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(573)

Issue 2312473002: Restrict the 1-argument ArrayView constructor to types with .size() and .data() (Closed)

Created:
4 years, 3 months ago by kwiberg-webrtc
Modified:
4 years, 3 months ago
Reviewers:
tommi, ossu
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Restrict the 1-argument ArrayView constructor to types with .size() and .data() Before this change, the argument still needed those methods, but not having them resulted in a compilation error. Now, it results in this constructor being removed from the overload set. This currently makes no difference, but I'm about to publish a CL that breaks without this. Committed: https://crrev.com/bd4317263a2aed4310f99c60fca540e41a996ec9 Cr-Commit-Position: refs/heads/master@{#14068}

Patch Set 1 #

Total comments: 2

Patch Set 2 : review comment #

Total comments: 4

Patch Set 3 : fix #

Patch Set 4 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -1 line) Patch
M webrtc/base/array_view.h View 1 2 chunks +30 lines, -1 line 0 comments Download
M webrtc/base/array_view_unittest.cc View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
kwiberg-webrtc
4 years, 3 months ago (2016-09-03 14:46:17 UTC) #2
tommi
lgtm https://codereview.webrtc.org/2312473002/diff/1/webrtc/base/array_view.h File webrtc/base/array_view.h (right): https://codereview.webrtc.org/2312473002/diff/1/webrtc/base/array_view.h#newcode43 webrtc/base/array_view.h:43: static constexpr bool value = (sizeof(Test<DS>(0)) == 1); ...
4 years, 3 months ago (2016-09-03 14:56:47 UTC) #3
kwiberg-webrtc
New patch set uploaded. https://codereview.webrtc.org/2312473002/diff/1/webrtc/base/array_view.h File webrtc/base/array_view.h (right): https://codereview.webrtc.org/2312473002/diff/1/webrtc/base/array_view.h#newcode43 webrtc/base/array_view.h:43: static constexpr bool value = ...
4 years, 3 months ago (2016-09-03 15:56:43 UTC) #4
tommi
nice, lgtm
4 years, 3 months ago (2016-09-03 21:02:25 UTC) #5
ossu
https://codereview.webrtc.org/2312473002/diff/20001/webrtc/base/array_view_unittest.cc File webrtc/base/array_view_unittest.cc (right): https://codereview.webrtc.org/2312473002/diff/20001/webrtc/base/array_view_unittest.cc#newcode55 webrtc/base/array_view_unittest.cc:55: static_assert(!DS<Test3, int>::value, ""); Surely, this should be DS<Test4, int>::value!
4 years, 3 months ago (2016-09-05 09:32:27 UTC) #6
kwiberg-webrtc
New patch set posted. https://codereview.webrtc.org/2312473002/diff/20001/webrtc/base/array_view_unittest.cc File webrtc/base/array_view_unittest.cc (right): https://codereview.webrtc.org/2312473002/diff/20001/webrtc/base/array_view_unittest.cc#newcode55 webrtc/base/array_view_unittest.cc:55: static_assert(!DS<Test3, int>::value, ""); On 2016/09/05 ...
4 years, 3 months ago (2016-09-05 09:40:18 UTC) #7
ossu
lgtm with nit https://codereview.webrtc.org/2312473002/diff/20001/webrtc/base/array_view_unittest.cc File webrtc/base/array_view_unittest.cc (right): https://codereview.webrtc.org/2312473002/diff/20001/webrtc/base/array_view_unittest.cc#newcode55 webrtc/base/array_view_unittest.cc:55: static_assert(!DS<Test3, int>::value, ""); On 2016/09/05 09:40:18, ...
4 years, 3 months ago (2016-09-05 09:50:44 UTC) #8
kwiberg-webrtc
https://codereview.webrtc.org/2312473002/diff/20001/webrtc/base/array_view_unittest.cc File webrtc/base/array_view_unittest.cc (right): https://codereview.webrtc.org/2312473002/diff/20001/webrtc/base/array_view_unittest.cc#newcode55 webrtc/base/array_view_unittest.cc:55: static_assert(!DS<Test3, int>::value, ""); On 2016/09/05 09:50:44, ossu wrote: > ...
4 years, 3 months ago (2016-09-05 10:11:16 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2312473002/60001
4 years, 3 months ago (2016-09-05 10:11:48 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-05 11:20:58 UTC) #13
commit-bot: I haz the power
4 years, 3 months ago (2016-09-05 11:21:06 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/bd4317263a2aed4310f99c60fca540e41a996ec9
Cr-Commit-Position: refs/heads/master@{#14068}

Powered by Google App Engine
This is Rietveld 408576698