Chromium Code Reviews
DescriptionMake checked_cast a constexpr
Wraps the CHECK in a handler. This makes the non-CHECK case a clean
constexpr, and has the nice effect of throwing a compile error if the
compile-time evaluation can determine that a runtime CHECK would hit.
Also had to fix a few incorrect uses of base::checked_cast (hence
the need for the NOPRESUBMIT to cover the media directory).
BUG=612995
NOPRESUBMIT=true
TBR=vabr@chromium.org,hubbe@chromium.org,dmurph@chromium.org
Committed: https://crrev.com/00c1837ccba1c6da4cb1e9b26539a6c3801bb2fb
Cr-Commit-Position: refs/heads/master@{#430519}
Patch Set 1 #Patch Set 2 : compile fix #Patch Set 3 : doc fix #
Total comments: 1
Patch Set 4 : nit #
Messages
Total messages: 30 (18 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||