Added set(const char *uri)
diff --git a/ndn-cpp/name.hpp b/ndn-cpp/name.hpp
index 5d6fb19..e02d293 100644
--- a/ndn-cpp/name.hpp
+++ b/ndn-cpp/name.hpp
@@ -96,7 +96,10 @@
    * Parse the uri according to the NDN URI Scheme and create the name with the components.
    * @param uri The URI string.
    */
-  Name(const char *uri);  
+  Name(const char *uri)
+  {
+    set(uri);
+  }
   
   /**
    * Set the nameStruct to point to the components in this name, without copying any memory.
@@ -112,6 +115,12 @@
   void set(const struct ndn_Name &nameStruct);
   
   /**
+   * Parse the uri according to the NDN URI Scheme and set the name with the components.
+   * @param uri The URI string.
+   */
+  void set(const char *uri);  
+
+  /**
    * Add a new component, copying from value of length valueLength.
    */
   void addComponent(unsigned char *value, unsigned int valueLength) {