Ignore:
Timestamp:
Mar 9, 2018, 2:28:09 PM (4 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
200b2b5, e2c70ab
Parents:
e84382b
Message:

Clean up code edits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/papers/general/evaluation/cpp-vstack.cpp

    re84382b r860f19f  
    2424stack::stack() : head( nullptr ) {}
    2525stack::stack( const stack & o ) { copy( o ); }
    26 stack::stack( stack && o ) : head( o.head ) { o.head = nullptr; }
    2726stack::~stack() { clear(); }
    2827
     
    3130        clear();
    3231        copy( o );
    33         return *this;
    34 }
    35 
    36 stack & stack::operator=( stack && o ) {
    37         if ( this == &o ) return *this;
    38         head = o.head;
    39         o.head = nullptr;
    4032        return *this;
    4133}
Note: See TracChangeset for help on using the changeset viewer.