Ignore:
Timestamp:
Aug 8, 2017, 8:04:39 PM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
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:
533804b
Parents:
b0440b7
Message:

Update vector_test to remove lvalue keyword

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/vector/vector_int.h

    rb0440b7 r9a4e996  
    2626
    2727void ?{}( vector_int & );                                                               // allocate vector with default capacity
    28 void ?{}( vector_int &, int reserve );          // allocate vector with specified capacity
    29 void ?{}( vector_int & vec, vector_int other ); // copy constructor
     28void ?{}( vector_int &, int reserve );                                  // allocate vector with specified capacity
     29void ?{}( vector_int & vec, vector_int other );                 // copy constructor
    3030void ^?{}( vector_int & );                                                              // deallocate vector's storage
    3131
     
    3535// implement bounded_array
    3636
    37 lvalue int ?[?]( vector_int * vec, int index );                 // access to arbitrary element (does not resize)
    38 int last( vector_int * vec );                                                           // return last element
     37int & ?[?]( vector_int * vec, int index );                              // access to arbitrary element (does not resize)
     38int last( vector_int * vec );                                                   // return last element
    3939
    4040#endif // VECTOR_INT_H
Note: See TracChangeset for help on using the changeset viewer.