summaryrefslogtreecommitdiff
path: root/infra/port.h
diff options
context:
space:
mode:
authorJulian Blake Kongslie2022-11-19 16:28:31 -0800
committerJulian Blake Kongslie2022-11-19 16:28:31 -0800
commitbab124c8c00053eebd24329b95f0554440a5004e (patch)
treeba31b14a2166e2b4ef9817abf8c2467b1d7c3955 /infra/port.h
parentFlush pt output after every event. (diff)
downloadnanosim-bab124c8c00053eebd24329b95f0554440a5004e.tar.xz
Port peek returns non-const ref.
Diffstat (limited to '')
-rw-r--r--infra/port.h2
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 }