commit | 21844fcddb24797deb837670317e87095c201773 | [log] [tgz] |
---|---|---|
author | Jeff Thompson <jefft0@gmail.com> | Thu Aug 08 14:52:51 2013 -0700 |
committer | Jeff Thompson <jefft0@gmail.com> | Thu Aug 08 14:52:51 2013 -0700 |
tree | b4d79dc58e466584ee294677122171601fd74b2e | |
parent | adaf92303139c519ac54bcfc1bba18bcfce75fdb [diff] [blame] |
Added toUri and deprecated to_uri
diff --git a/ndn-cpp/name.hpp b/ndn-cpp/name.hpp index b4a8dbe..f287f47 100644 --- a/ndn-cpp/name.hpp +++ b/ndn-cpp/name.hpp
@@ -132,8 +132,16 @@ * Encode this name as a URI. * @return The encoded URI. */ - std::string to_uri() const; + std::string toUri() const; + /** + * @deprecated Use toUri(). + */ + std::string to_uri() const + { + return toUri(); + } + private: std::vector<Component> components_; };