diff --git a/src/memory.hpp b/src/memory.hpp
index 8c7390b66a3b5672cf27a8de31798724a1eac356..6a0b5f26fa4e6b98b423b9a83ae6096dc1af6a12 100644
--- a/src/memory.hpp
+++ b/src/memory.hpp
@@ -41,7 +41,7 @@ namespace boost { namespace python { namespace objects { \
         PyObject* weakrefs; \
         instance_holder* objects; \
          \
-        typedef typename type_with_alignment< \
+        typedef type_with_alignment< \
         ::boost::alignment_of<Data>::value  \
         >::type align_t; \
          \