[cmake-developers] [CMake 0015318]: cmComputeLinkDepends.cxx fils to compile
Mantis Bug Tracker
mantis at public.kitware.com
Thu Dec 18 11:14:19 EST 2014
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=15318
======================================================================
Reported By: Fritz H
Assigned To:
======================================================================
Project: CMake
Issue ID: 15318
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2014-12-18 17:14 CET
Last Modified: 2014-12-18 17:14 CET
======================================================================
Summary: cmComputeLinkDepends.cxx fils to compile
Description:
os: solaris 10, compiler: sunstudio 12.1
file Source/cmComputeLinkDepends.cxx fails to compile, error:
line 270: Error: Cannot use std::reverse_iterator<int*,
std::random_access_iterator_tag, int, int&, int*, int> to initialize
std::reverse_iterator<const int*, std::random_access_iterator_tag, int, const
int&, const int*, int>.
line 271: Error: Cannot use std::reverse_iterator<int*,
std::random_access_iterator_tag, int, int&, int*, int> to initialize
std::reverse_iterator<const int*, std::random_access_iterator_tag, int, const
int&, const int*, int>.
i am not an expert in c++, but the following change at least satisfied the
compiler:
--- cmake-3.1.0_orig/Source/cmComputeLinkDepends.cxx Mon Dec 15 21:07:43
2014
+++ cmake-3.1.0/Source/cmComputeLinkDepends.cxx Thu Dec 18 16:17:00 2014
@@ -266,7 +266,7 @@
// Iterate in reverse order so we can keep only the last occurrence
// of a shared library.
std::set<int> emmitted;
- for(std::vector<int>::const_reverse_iterator
+ for(std::vector<int>::reverse_iterator
li = this->FinalLinkOrder.rbegin(),
le = this->FinalLinkOrder.rend();
li != le; ++li)
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-12-18 17:14 Fritz H New Issue
======================================================================
More information about the cmake-developers
mailing list