Skip to content

Commit

Permalink
base: attempt to fix compile on vs2019
Browse files Browse the repository at this point in the history
Bug: 153189621
Change-Id: Ie93cd0d6e4e128c5402539dac15507d4aed22edd
  • Loading branch information
LalitMaganti committed Apr 7, 2020
1 parent 97d7d47 commit c81e804
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/perfetto/ext/base/circular_queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ class CircularQueue {
public:
using difference_type = ptrdiff_t;
using value_type = T;
using pointer = const T*;
using reference = const T&;
using pointer = T*;
using reference = T&;
using iterator_category = std::random_access_iterator_tag;

Iterator(CircularQueue* queue, uint64_t pos, uint32_t generation)
Expand Down
3 changes: 3 additions & 0 deletions src/trace_processor/timestamped_trace_piece.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ struct TimestampedTracePiece {
return *this;
}

TimestampedTracePiece(const TimestampedTracePiece&) = delete;
TimestampedTracePiece& operator=(const TimestampedTracePiece&) = delete;

~TimestampedTracePiece() {
switch (type) {
case Type::kInvalid:
Expand Down

0 comments on commit c81e804

Please sign in to comment.