1 If a class or struct has no user-defined default constructor, C++ doesn't
2 allow you to default construct a const instance of it.
4 https://bugs.gentoo.org/358021
5 http://clang.llvm.org/compatibility.html#default_init_const
6 http://gcc.gnu.org/PR44499
9 --- a/jade/TeXFOTBuilder.cxx
10 +++ b/jade/TeXFOTBuilder.cxx
11 @@ -88,6 +88,8 @@ public:
12 value.convertString(nic_.placement);
14 ExtensionFlowObj *copy() const { return new PageFloatFlowObj(*this); }
16 + PageFloatFlowObj() {}
20 @@ -101,6 +103,8 @@ public:
21 fotb.endPageFootnote();
23 ExtensionFlowObj *copy() const { return new PageFootnoteFlowObj(*this); }
25 + PageFootnoteFlowObj() {}
28 //////////////////////////////////////////////////////////////////////
29 --- a/jade/TransformFOTBuilder.cxx
30 +++ b/jade/TransformFOTBuilder.cxx
31 @@ -41,6 +41,7 @@ public:
33 class EntityRefFlowObj : public TransformExtensionFlowObj {
35 + EntityRefFlowObj() {}
36 void atomic(TransformFOTBuilder &fotb, const NodePtr &) const {
37 fotb.entityRef(name_);
39 @@ -56,6 +57,7 @@ public:
41 class ProcessingInstructionFlowObj : public TransformExtensionFlowObj {
43 + ProcessingInstructionFlowObj() {}
44 void atomic(TransformFOTBuilder &fotb, const NodePtr &) const {
45 fotb.processingInstruction(data_);
47 @@ -98,6 +100,8 @@ public:
50 ExtensionFlowObj *copy() const { return new EmptyElementFlowObj(*this); }
52 + EmptyElementFlowObj() {}
56 @@ -133,6 +137,8 @@ public:
59 ExtensionFlowObj *copy() const { return new ElementFlowObj(*this); }
65 @@ -150,6 +156,8 @@ public:
66 value.convertString(systemId_);
68 ExtensionFlowObj *copy() const { return new EntityFlowObj(*this); }
74 @@ -174,6 +182,8 @@ public:
77 ExtensionFlowObj *copy() const { return new DocumentTypeFlowObj(*this); }
79 + DocumentTypeFlowObj() {}