X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fprogramsyntax.h;h=e7b5111ea2bfd5c411c853d99bffb32ff2f74aee;hb=caad9bd997e95b3ccdf496313588b8480ebfddfa;hp=590429519118614f6a59a83796da97f50693ff9c;hpb=a3c795f7b07afa3e8838ad143f8df7a8d10f1ad4;p=libs%2Fgl.git diff --git a/source/programsyntax.h b/source/programsyntax.h index 59042951..e7b5111e 100644 --- a/source/programsyntax.h +++ b/source/programsyntax.h @@ -20,6 +20,9 @@ struct NodeVisitor; struct Node { +protected: + Node() { } + Node(const Node &) { } private: Node &operator=(const Node &); public: @@ -36,6 +39,7 @@ public: NodePtr() { } NodePtr(T *p): RefPtr(p) { } NodePtr(const NodePtr &p): RefPtr(p ? p->clone() : 0) { } + NodePtr &operator=(const NodePtr &p) { RefPtr::operator=(p); return *this; } template NodePtr(const RefPtr &p): RefPtr(p) { }