]> git.tdb.fi Git - libs/gl.git/blobdiff - source/programsyntax.h
Remove the deprecated ProgramBuilder class
[libs/gl.git] / source / programsyntax.h
index 590429519118614f6a59a83796da97f50693ff9c..e7b5111ea2bfd5c411c853d99bffb32ff2f74aee 100644 (file)
@@ -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<T>(p) { }
        NodePtr(const NodePtr &p): RefPtr<T>(p ? p->clone() : 0) { }
+       NodePtr &operator=(const NodePtr &p) { RefPtr<T>::operator=(p); return *this; }
 
        template<typename U>
        NodePtr(const RefPtr<U> &p): RefPtr<T>(p) { }