Changeset bcb311b for src/AST/Node.hpp
- Timestamp:
- Jun 25, 2019, 2:49:56 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 92f5279
- Parents:
- 9ea38de
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Node.hpp
r9ea38de rbcb311b 30 30 /// Keeps both strong and weak reference counts. 31 31 class Node { 32 /// call to debug on node creation/deletion33 void _trap();34 32 public: 35 33 // override defaults to ensure assignment doesn't 36 34 // change/share reference counts 37 Node() { _trap(); }38 Node(const Node&) : strong_count(0), weak_count(0) { _trap();}39 Node(Node&&) : strong_count(0), weak_count(0) { _trap();}35 Node() = default; 36 Node(const Node&) : strong_count(0), weak_count(0) {} 37 Node(Node&&) : strong_count(0), weak_count(0) {} 40 38 Node& operator= (const Node&) = delete; 41 39 Node& operator= (Node&&) = delete; 42 virtual ~Node() { _trap();}40 virtual ~Node() {} 43 41 44 42 virtual const Node * accept( Visitor & v ) const = 0;
Note: See TracChangeset
for help on using the changeset viewer.