From 57c4325c7dc3a19dea5276f9ab92647d42a3d43a Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 18 Apr 2001 08:01:56 -0400 Subject: [PATCH] ERR: We can't assume a vector iterator is a pointer. It must be dereferenced to get a reference to the element, and then we can take the address of that to get a pointer. "i" becomes "&*i" --- Source/cmMakeDepend.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmMakeDepend.cxx b/Source/cmMakeDepend.cxx index fef088ecb..68cbe738e 100644 --- a/Source/cmMakeDepend.cxx +++ b/Source/cmMakeDepend.cxx @@ -68,7 +68,7 @@ void cmMakeDepend::SetMakefile(cmMakefile* makefile) info->m_FullPath = this->FullPath(i->m_FullPath.c_str()); this->AddFileToSearchPath(info->m_FullPath.c_str()); info->m_IncludeName = i->m_FullPath; - info->m_ClassFileIndex = i; + info->m_ClassFileIndex = &*i; m_DependInformation.push_back(info); } }