Ignore:
Timestamp:
May 18, 2018, 10:05:49 AM (4 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
new-env, with_gc
Children:
ff29f08
Parents:
7a37f25
git-author:
Aaron Moss <a3moss@…> (05/17/18 15:51:08)
git-committer:
Aaron Moss <a3moss@…> (05/18/18 10:05:49)
Message:

Standard library builds in GC branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Alternative.cc

    r7a37f25 rf6f0cca3  
    3737        Alternative::Alternative( Expression *expr, const TypeEnvironment &env, const Cost& cost, const Cost &cvtCost )
    3838                : cost( cost ), cvtCost( cvtCost ), expr( expr ), env( env ) {}
     39       
     40        Alternative::Alternative( const Alternative& o )
     41                : cost( o.cost ), cvtCost( o.cvtCost ), expr( maybeClone( o.expr ) ), env( o.env ) {}
     42       
     43        Alternative & Alternative::operator= ( const Alternative& o ) {
     44                if ( &o == this ) return *this;
     45                cost = o.cost;
     46                cvtCost = o.cvtCost;
     47                expr = maybeClone( o.expr );
     48                env = o.env;
     49                return *this;
     50        }
    3951
    4052        void Alternative::print( std::ostream &os, Indenter indent ) const {
Note: See TracChangeset for help on using the changeset viewer.