Added addComponent(vector<unsigned char>)
diff --git a/ndn-cpp/name.hpp b/ndn-cpp/name.hpp
index e02d293..5c6754a 100644
--- a/ndn-cpp/name.hpp
+++ b/ndn-cpp/name.hpp
@@ -126,6 +126,13 @@
   void addComponent(unsigned char *value, unsigned int valueLength) {
     components_.push_back(Component(value, valueLength));
   }
+
+  /**
+   * Add a new component, copying from value.
+   */
+  void addComponent(const std::vector<unsigned char> &value) {
+    components_.push_back(value);
+  }
   
   /**
    * Clear all the components.