summaryrefslogtreecommitdiff
path: root/src/systemc/ext/channel/sc_in.hh
diff options
context:
space:
mode:
authorNikos Nikoleris <nikos.nikoleris@arm.com>2018-12-17 15:50:04 +0000
committerNikos Nikoleris <nikos.nikoleris@arm.com>2018-12-19 09:00:26 +0000
commit1001d247968b31f803b9dcd4f527e34ebe27c182 (patch)
treec09d6b12b385d1b016effd874e9eaf5a48d4e274 /src/systemc/ext/channel/sc_in.hh
parentf256a2c44f2001a4c3cde4350a857f3d6f105b74 (diff)
downloadgem5-1001d247968b31f803b9dcd4f527e34ebe27c182.tar.xz
systemc: Allow specific functions to shadow the base class method
sc_in::bind and sc_core::sc_object::print shadow their respective base class method. This change adds the necessary declarations to inform the compiler that this is intentional. Change-Id: I8c6bc0f05aa568630783db63d52be90f4ea4748c Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/15135 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/ext/channel/sc_in.hh')
-rw-r--r--src/systemc/ext/channel/sc_in.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/systemc/ext/channel/sc_in.hh b/src/systemc/ext/channel/sc_in.hh
index 85d089dbc..36547c21e 100644
--- a/src/systemc/ext/channel/sc_in.hh
+++ b/src/systemc/ext/channel/sc_in.hh
@@ -83,6 +83,7 @@ class sc_in : public sc_port<sc_signal_in_if<T>, 1>
_valueChangedFinder(*this, &sc_signal_in_if<T>::value_changed_event)
{}
+ using sc_port<sc_signal_in_if<T>, 1>::bind;
virtual void
bind(const sc_signal_in_if<T> &i)
{