Ignore:
Timestamp:
Mar 16, 2018, 5:15:02 PM (6 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
new-env, with_gc
Children:
8d7bef2
Parents:
6171841
git-author:
Aaron Moss <a3moss@…> (03/16/18 17:04:24)
git-committer:
Aaron Moss <a3moss@…> (03/16/18 17:15:02)
Message:

First pass at delete removal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Alternative.h

    r6171841 r68f9c43  
    2929                Alternative( Expression *expr, const TypeEnvironment &env, const Cost &cost );
    3030                Alternative( Expression *expr, const TypeEnvironment &env, const Cost &cost, const Cost &cvtCost );
    31                 Alternative( const Alternative &other );
    32                 Alternative &operator=( const Alternative &other );
    33                 Alternative( Alternative && other );
    34                 Alternative &operator=( Alternative && other );
    35                 ~Alternative();
     31                Alternative( const Alternative &other ) = default;
     32                Alternative &operator=( const Alternative &other ) = default;
    3633
    3734                void print( std::ostream &os, Indenter indent = {} ) const;
    3835
    39                 /// Returns the stored expression, but released from management of this Alternative
    40                 Expression* release_expr() {
    41                         Expression* tmp = expr;
    42                         expr = nullptr;
    43                         return tmp;
    44                 }
    45 
    4636                Cost cost;
    4737                Cost cvtCost;
    48                 Expression *expr;
     38                Expression * expr;
    4939                TypeEnvironment env;
    5040        };
Note: See TracChangeset for help on using the changeset viewer.