Ignore:
Timestamp:
Mar 9, 2018, 12:11:23 PM (7 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/Paper.tex

    r12bbb367 rf86c8e5  
    26272627                                                                        & \CT{C}        & \CT{\CFA}     & \CT{\CC}      & \CT{\CCV}             \\ \hline
    26282628maximum memory usage (MB)                       & 10,001        & 2,502         & 2,503         & 11,253                \\
    2629 source code size (lines)                        & 197           & 186           & 133           & 303                   \\
     2629source code size (lines)                        & 197           & 186           & 125           & 293                   \\
    26302630redundant type annotations (lines)      & 27            & 0                     & 2                     & 16                    \\
    26312631binary size (KB)                                        & 14            & 257           & 14            & 37                    \\
     
    29252925        stack() : head( nullptr) {}
    29262926        stack( const stack<T> & o ) { copy( o ); }
    2927         stack( stack<T> && o ) : head( o.head) { o.head = nullptr; }
    29282927        ~stack() { clear(); }
    29292928        stack & operator= ( const stack<T> & o) {
     
    29312930                clear();
    29322931                copy( o );
    2933                 return *this;
    2934         }
    2935         stack & operator= ( stack<T> && o ) {
    2936                 if ( this == &o ) return *this;
    2937                 head = o.head;
    2938                 o.head = nullptr;
    29392932                return *this;
    29402933        }
     
    29792972        stack() : head( nullptr ) {}
    29802973        stack( const stack & o ) { copy( o ); }
    2981         stack( stack && o ) : head( o.head ) { o.head = nullptr; }
    2982         ~stack() { clear(); }
     2974                ~stack() { clear(); }
    29832975        stack & operator= ( const stack & o ) {
    29842976                if ( this == &o ) return *this;
    29852977                clear();
    29862978                copy( o );
    2987                 return *this;
    2988         }
    2989         stack & operator= ( stack && o ) {
    2990                 if ( this == &o ) return *this;
    2991                 head = o.head;
    2992                 o.head = nullptr;
    29932979                return *this;
    29942980        }
Note: See TracChangeset for help on using the changeset viewer.