Bug 1209227 - Part 2: Mark mfbt::Variant as MOZ_INHERIT_TYPE_ANNOTATIONS_FROM_TEMPLATE_ARGS, r=froydnj
authorMichael Layzell <michael@thelayzells.com>
Tue, 29 Sep 2015 13:36:55 -0400
changeset 337142 e12e09384b27f84b34145ced24af38607c378b87
parent 337141 ed89ff77c920a87da224befbe848b8cd6497fb46
child 337143 e96398029a1c6c0683466f9b0f2afa214be79a75
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1209227
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1209227 - Part 2: Mark mfbt::Variant as MOZ_INHERIT_TYPE_ANNOTATIONS_FROM_TEMPLATE_ARGS, r=froydnj
mfbt/Variant.h
--- a/mfbt/Variant.h
+++ b/mfbt/Variant.h
@@ -403,17 +403,17 @@ struct AsVariantTemporary
  *     class CopyOnWriteString
  *     {
  *       Variant<const char*, UniquePtr<char[]>> string;
  *
  *       ...
  *     };
  */
 template<typename... Ts>
-class Variant
+class MOZ_INHERIT_TYPE_ANNOTATIONS_FROM_TEMPLATE_ARGS Variant
 {
   using Impl = detail::VariantImplementation<0, Ts...>;
   using RawData = AlignedStorage<detail::MaxSizeOf<Ts...>::size>;
 
   // Each type is given a unique size_t sentinel. This tag lets us keep track of
   // the contained variant value's type.
   size_t tag;