diff --git a/systemc-components/reg_router/include/reg_router.h b/systemc-components/reg_router/include/reg_router.h index e6b1cb21..02109723 100644 --- a/systemc-components/reg_router/include/reg_router.h +++ b/systemc-components/reg_router/include/reg_router.h @@ -301,10 +301,12 @@ class reg_router : public sc_core::sc_module, public gs::router_if } public: - explicit reg_router(const sc_core::sc_module_name& nm, - const std::map>& p_mod_addr_name_map = {}, - const std::function& pre_b_transport_callback = {}, - cci::cci_broker_handle broker = cci::cci_get_broker()) + explicit reg_router( + const sc_core::sc_module_name& nm, + const std::map>& p_mod_addr_name_map = + std::map>(), + const std::function& pre_b_transport_callback = std::function(), + cci::cci_broker_handle broker = cci::cci_get_broker()) : sc_core::sc_module(nm) , initiator_socket("initiator_socket", [&](std::string s) -> void { register_boundto(s); }) , target_socket("target_socket") @@ -338,7 +340,7 @@ class reg_router : public sc_core::sc_module, public gs::router_if private: std::vector mem_targets; std::map cb_targets; - const std::map>& mod_addr_name_map; + std::map> mod_addr_name_map; std::function m_pre_b_transport_callback; bool initialized = false; };