From 6efe7adf98d4f2ab7d892680789f4f18ba477d23 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Sat, 12 Jul 2008 18:28:46 +0000 Subject: [PATCH] Inline typedef for alist_iterator::pointer to work with MSVC++. llvm-svn: 53517 --- include/llvm/ADT/alist.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/llvm/ADT/alist.h b/include/llvm/ADT/alist.h index f4b8cf9a1df..1af3e4a5c0c 100644 --- a/include/llvm/ADT/alist.h +++ b/include/llvm/ADT/alist.h @@ -34,7 +34,11 @@ private: public: typedef size_t size_type; - typedef typename super::pointer pointer; + + // FIX for MSVC++. This should be reviewed more. + // typedef typename super::pointer pointer; + typedef ValueT* pointer; + typedef typename super::reference reference; alist_iterator(NodeIterT NI) : NodeIter(NI) {}