|
|
Created:
4 years, 11 months ago by bungeman-skia Modified:
4 years, 11 months ago CC:
reviews_skia.org Base URL:
https://skia.googlesource.com/skia.git@master Target Ref:
refs/heads/master Project:
skia Visibility:
Public. |
DescriptionAdd skstd::remove_pointer_t and use it.
This replaces an existing incomplete implementation. This also makes
it easier to update the current use in the future when switching to
<type_traits>.
Committed: https://skia.googlesource.com/skia/+/54e63082191f337084f96083ca90d7c35273d6ff
Patch Set 1 #
Total comments: 2
Patch Set 2 : Rebase. #
Messages
Total messages: 24 (12 generated)
Description was changed from ========== Add skstd::remove_pointer_t and use it. This replaces an existing incomplete implementation. This also makes it easier to update the current use in the future when switching to <type_traits>. ========== to ========== Add skstd::remove_pointer_t and use it. This replaces an existing incomplete implementation. This also makes it easier to update the current use in the future when switching to <type_traits>. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&is... ==========
Description was changed from ========== Add skstd::remove_pointer_t and use it. This replaces an existing incomplete implementation. This also makes it easier to update the current use in the future when switching to <type_traits>. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&is... ========== to ========== Add skstd::remove_pointer_t and use it. This replaces an existing incomplete implementation. This also makes it easier to update the current use in the future when switching to <type_traits>. ==========
The CQ bit was checked by bungeman@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1555153002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1555153002/1
bungeman@google.com changed reviewers: + djsollen@google.com
I originally wrote the incomplete version because I needed the underlying type of a pointer typedef (and the underlying type name isn't documented and has changed in the past). By making this more complete and standard-ish it will be easier to update when we move to type_traits.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
bungeman@google.com changed reviewers: + mtklein@google.com
https://codereview.chromium.org/1555153002/diff/1/include/private/SkTLogic.h File include/private/SkTLogic.h (right): https://codereview.chromium.org/1555153002/diff/1/include/private/SkTLogic.h#... include/private/SkTLogic.h:62: template <typename T, typename T_cv> struct remove_pointer_no_cv { using type = T; }; Can't we use std::remove_ptr, then build skstd::remove_ptr_t on top?
Description was changed from ========== Add skstd::remove_pointer_t and use it. This replaces an existing incomplete implementation. This also makes it easier to update the current use in the future when switching to <type_traits>. ========== to ========== Add skstd::remove_pointer_t and use it. This replaces an existing incomplete implementation. This also makes it easier to update the current use in the future when switching to <type_traits>. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&is... ==========
Description was changed from ========== Add skstd::remove_pointer_t and use it. This replaces an existing incomplete implementation. This also makes it easier to update the current use in the future when switching to <type_traits>. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&is... ========== to ========== Add skstd::remove_pointer_t and use it. This replaces an existing incomplete implementation. This also makes it easier to update the current use in the future when switching to <type_traits>. ==========
The CQ bit was checked by bungeman@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1555153002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1555153002/20001
https://codereview.chromium.org/1555153002/diff/1/include/private/SkTLogic.h File include/private/SkTLogic.h (right): https://codereview.chromium.org/1555153002/diff/1/include/private/SkTLogic.h#... include/private/SkTLogic.h:62: template <typename T, typename T_cv> struct remove_pointer_no_cv { using type = T; }; On 2016/01/05 02:41:00, mtklein wrote: > Can't we use std::remove_pointer, then build skstd::remove_pointer_t on top? Yes, but doing so would mean fixing all the other things in here for consistency. Instead of doing that later, lets just do it now https://codereview.chromium.org/1561683002/ . So, done.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
On 2016/01/06 16:25:16, bungeman1 wrote: > https://codereview.chromium.org/1555153002/diff/1/include/private/SkTLogic.h > File include/private/SkTLogic.h (right): > > https://codereview.chromium.org/1555153002/diff/1/include/private/SkTLogic.h#... > include/private/SkTLogic.h:62: template <typename T, typename T_cv> struct > remove_pointer_no_cv { using type = T; }; > On 2016/01/05 02:41:00, mtklein wrote: > > Can't we use std::remove_pointer, then build skstd::remove_pointer_t on top? > > Yes, but doing so would mean fixing all the other things in here for > consistency. Instead of doing that later, lets just do it now > https://codereview.chromium.org/1561683002/ . > > So, done. Are you explaining this to yesterday me? :P
lgtm
The CQ bit was checked by bungeman@google.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1555153002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1555153002/20001
Message was sent while issue was closed.
Description was changed from ========== Add skstd::remove_pointer_t and use it. This replaces an existing incomplete implementation. This also makes it easier to update the current use in the future when switching to <type_traits>. ========== to ========== Add skstd::remove_pointer_t and use it. This replaces an existing incomplete implementation. This also makes it easier to update the current use in the future when switching to <type_traits>. Committed: https://skia.googlesource.com/skia/+/54e63082191f337084f96083ca90d7c35273d6ff ==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as https://skia.googlesource.com/skia/+/54e63082191f337084f96083ca90d7c35273d6ff |