fb5850f410
There's no reason to use std::aligned_storage when it's simpler to use an array and alignas(). This way you don't have to remember whether the template arguments are size-then-align or align-then-size, you don't have to remember to use the _t variant or typename ... ::type, and there's no risk to forgetting the alignment parameter entirely. It doesn't look like this was deprecated, but I still think this paper makes good arguments for why we shouldn't use it: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1413r1.pdf Bug: skia:10921 Change-Id: Ia64a2e43c4cba9b4d64138a7474e353a8eaf01a6 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/333258 Reviewed-by: Herb Derby <herb@google.com> Commit-Queue: Mike Klein <mtklein@google.com> |
||
---|---|---|
animations | ||
bazel | ||
bench | ||
bin | ||
build/fuchsia | ||
build_overrides | ||
client_utils/android | ||
demos.skia.org | ||
dm | ||
docker | ||
docs/examples | ||
example | ||
experimental | ||
fuzz | ||
gm | ||
gn | ||
include | ||
infra | ||
modules | ||
platform_tools | ||
resources | ||
samplecode | ||
site | ||
specs | ||
src | ||
tests | ||
third_party | ||
tools | ||
.bazelignore | ||
.clang-format | ||
.clang-tidy | ||
.gitignore | ||
.gn | ||
AUTHORS | ||
BUILD.bazel | ||
BUILD.gn | ||
codereview.settings | ||
CONTRIBUTING | ||
CQ_COMMITTERS | ||
DEPS | ||
go.mod | ||
go.sum | ||
LICENSE | ||
OWNERS | ||
PRESUBMIT.py | ||
public.bzl | ||
README | ||
README.chromium | ||
RELEASE_NOTES.txt | ||
whitespace.txt | ||
WORKSPACE.bazel |
Skia is a complete 2D graphic library for drawing Text, Geometries, and Images. See full details, and build instructions, at https://skia.org.