From d41a025aab0a494bd0718e685189bfa97625191c Mon Sep 17 00:00:00 2001 From: Andi-Bogdan Postelnicu Date: Fri, 6 May 2016 14:36:47 +0300 Subject: [PATCH] Bug 1270805 - add default constructor for TypeAndValue. r=jandem MozReview-Commit-ID: HqSkqzYGIGc --HG-- extra : rebase_source : a3f210cf6d07e7930ce5ea4d1f9d2262c733d282 --- js/src/asmjs/WasmBinaryIterator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/asmjs/WasmBinaryIterator.h b/js/src/asmjs/WasmBinaryIterator.h index 0d886bb46efd..de07dd6333eb 100644 --- a/js/src/asmjs/WasmBinaryIterator.h +++ b/js/src/asmjs/WasmBinaryIterator.h @@ -172,12 +172,12 @@ class TypeAndValue // Specialization for when there is no additional data needed. template <> -struct TypeAndValue +class TypeAndValue { ExprType type_; public: - TypeAndValue() {} + TypeAndValue() = default; explicit TypeAndValue(ExprType type) : type_(type) {} TypeAndValue(ExprType type, Nothing value)