Ignore:
Timestamp:
Mar 9, 2018, 12:11:23 PM (5 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, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
3d8f2f8, b51e5fdb
Parents:
12bbb367
Message:

Remove move-operators from C++, C++obj benchmarks for parity

File:
1 edited

Legend:

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

    r12bbb367 rf86c8e5  
    3131        stack() : head(nullptr) {}
    3232        stack(const stack<T>& o) { copy(o); }
    33         stack(stack<T>&& o) : head(o.head) { o.head = nullptr; }
    3433        ~stack() { clear(); }
    3534
     
    3837                clear();
    3938                copy(o);
    40                 return *this;
    41         }
    42 
    43         stack& operator= (stack<T>&& o) {
    44                 if ( this == &o ) return *this;
    45                 head = o.head;
    46                 o.head = nullptr;
    4739                return *this;
    4840        }
Note: See TracChangeset for help on using the changeset viewer.