DescriptionStrictly disable instantiation of AllStatic class
Since the intention of using AllStatic class is to provide classes that
only contain static method functions without member variables so it
doesn't have to be instantiated at all.
However, current implementation only disables dynamic instantiation, and
it can be detected at runtime by reaching UNREACHABLE(). And it can
still have instances allocated inside stack.
This blocks all those cases by deleting default constructor of AllStatic
class to prevent undesirable usage of it.
BUG=
R=jochen@chromium.org
Committed: https://crrev.com/446232f16b85504410d48dfadfab95da939bad92
Cr-Commit-Position: refs/heads/master@{#37532}
Patch Set 1 #Patch Set 2 : Strictly disable instantiation of AllStatic class #
Messages
Total messages: 15 (4 generated)
|