Ignore:
Timestamp:
Mar 9, 2018, 12:11:23 PM (6 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, 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-vstack.cpp

    r12bbb367 rf86c8e5  
    1515stack::stack() : head(nullptr) {}
    1616stack::stack(const stack& o) { copy(o); }
    17 stack::stack(stack&& o) : head(o.head) { o.head = nullptr; }
    1817stack::~stack() { clear(); }
    1918
     
    2221        clear();
    2322        copy(o);
    24         return *this;
    25 }
    26 
    27 stack& stack::operator= (stack&& o) {
    28         if ( this == &o ) return *this;
    29         head = o.head;
    30         o.head = nullptr;
    3123        return *this;
    3224}
Note: See TracChangeset for help on using the changeset viewer.