commit | a84f464e10055eb3bed19a456f6b20b9a4809ca4 | [log] [tgz] |
---|---|---|
author | Davide Pesavento <davide.pesavento@lip6.fr> | Wed Aug 23 16:14:51 2017 -0400 |
committer | Davide Pesavento <davide.pesavento@lip6.fr> | Wed Aug 23 22:50:18 2017 -0400 |
tree | ba798b94ad12a85f6640653d7a25df6f026f9b87 | |
parent | cdcde905883fa9c9371b9bede2fc7a1af3e8ea4a [diff] [blame] |
Cleanup iostream includes Change-Id: I16dd945998463975b140c7a010d64a112f95d8ba
diff --git a/src/interest.cpp b/src/interest.cpp index 3f8352b..26b564e 100644 --- a/src/interest.cpp +++ b/src/interest.cpp
@@ -24,6 +24,7 @@ #include "data.hpp" #include <cstring> +#include <sstream> namespace ndn { @@ -169,6 +170,14 @@ } } +std::string +Interest::toUri() const +{ + std::ostringstream os; + os << *this; + return os.str(); +} + // ---- matching ---- bool