diff --git a/include/dtlmod/DTL.hpp b/include/dtlmod/DTL.hpp index 4253d67..9828cc8 100644 --- a/include/dtlmod/DTL.hpp +++ b/include/dtlmod/DTL.hpp @@ -58,7 +58,7 @@ class DTL { /// @brief Retrieve all streams declared in the Data Transport by its name. /// @return a map of handlers on Stream objects with their names as keys. - std::unordered_map> get_all_streams() const { return streams_; } + const std::unordered_map>& get_all_streams() const { return streams_; } /// @brief Retrieve a data stream from the Data Transport Layer by its name. /// @param name The name of the Stream to retrieve.