From ff3b5ca1219e748ce31d6bc68bf06a338cd06478 Mon Sep 17 00:00:00 2001 From: Gil Date: Thu, 8 Feb 2018 08:30:09 -0800 Subject: Explicitly specify the default constructor to FieldPath (#773) Xcode prior to 8.3 does not accept an explicitly defaulted constructor (`= default`) for the purposes of default initializing a const object. This fixes a build failure under Xcode 8.2: ``` Firestore/core/src/firebase/firestore/model/field_path.cc:144:26: error: default initialization of an object of const type 'const firebase::firestore::model::FieldPath' without a user-provided default constructor static const FieldPath empty_path; ``` --- Firestore/core/src/firebase/firestore/model/field_path.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Firestore/core/src/firebase/firestore/model') diff --git a/Firestore/core/src/firebase/firestore/model/field_path.h b/Firestore/core/src/firebase/firestore/model/field_path.h index a8b147e..00b658a 100644 --- a/Firestore/core/src/firebase/firestore/model/field_path.h +++ b/Firestore/core/src/firebase/firestore/model/field_path.h @@ -35,7 +35,10 @@ namespace model { */ class FieldPath : public impl::BasePath { public: - FieldPath() = default; + // Note: Xcode 8.2 requires explicit specification of the constructor. + FieldPath() : impl::BasePath() { + } + /** Constructs the path from segments. */ template FieldPath(const IterT begin, const IterT end) : BasePath{begin, end} { -- cgit v1.2.3