Bug 1270805 - add default constructor for TypeAndValue<Nothing>. r?jdemooij draft
authorAndi-Bogdan Postelnicu <bogdan.postelnicu@softvision.ro>
Fri, 06 May 2016 14:36:47 +0300
changeset 364339 033d9b60b39a2594e5001ab35ed0b87a40f3f47f
parent 363870 e5a10bc7dac4ee2453d8319165c1f6578203eac7
child 520234 084cc8145f5ebba4e98a2ee90680596c1fb9a70a
push id17410
push userBogdan.Postelnicu@softvision.ro
push dateFri, 06 May 2016 11:37:39 +0000
reviewersjdemooij
bugs1270805
milestone49.0a1
Bug 1270805 - add default constructor for TypeAndValue<Nothing>. r?jdemooij MozReview-Commit-ID: HqSkqzYGIGc
js/src/asmjs/WasmBinaryIterator.h
--- a/js/src/asmjs/WasmBinaryIterator.h
+++ b/js/src/asmjs/WasmBinaryIterator.h
@@ -167,22 +167,22 @@ class TypeAndValue
     }
     void setValue(Value value) {
         value_ = value;
     }
 };
 
 // Specialization for when there is no additional data needed.
 template <>
-struct TypeAndValue<Nothing>
+class TypeAndValue<Nothing>
 {
     ExprType type_;
 
   public:
-    TypeAndValue() {}
+    TypeAndValue() = default;
     explicit TypeAndValue(ExprType type) : type_(type) {}
 
     TypeAndValue(ExprType type, Nothing value)
       : type_(type)
     {}
 
     ExprType type() const { return type_; }
     Nothing value() const { return Nothing(); }