diff options
| author | Julian Blake Kongslie | 2022-11-19 16:28:31 -0800 |
|---|---|---|
| committer | Julian Blake Kongslie | 2022-11-19 16:28:31 -0800 |
| commit | bab124c8c00053eebd24329b95f0554440a5004e (patch) | |
| tree | ba31b14a2166e2b4ef9817abf8c2467b1d7c3955 | |
| parent | Flush pt output after every event. (diff) | |
| download | nanosim-bab124c8c00053eebd24329b95f0554440a5004e.tar.xz | |
Port peek returns non-const ref.
Diffstat (limited to '')
| -rw-r--r-- | infra/port.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/infra/port.h b/infra/port.h index 06a3aa5..bdc31b4 100644 --- a/infra/port.h +++ b/infra/port.h | |||
| @@ -21,7 +21,7 @@ namespace infra { | |||
| 21 | return x; | 21 | return x; |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | const T & peek() { | 24 | T & peek() { |
| 25 | assert(can_read()); | 25 | assert(can_read()); |
| 26 | return *consumer_side; | 26 | return *consumer_side; |
| 27 | } | 27 | } |
