match should be a const method.
diff --git a/ndn-cpp/name.cpp b/ndn-cpp/name.cpp
index 2886d1a..bb2b144 100644
--- a/ndn-cpp/name.cpp
+++ b/ndn-cpp/name.cpp
@@ -231,7 +231,7 @@
   return result.str();
 }
 
-bool Name::match(const Name &name)
+bool Name::match(const Name &name) const
 {
   // Imitate ndn_Name_match.