Fix compilation with the Oracle / Sun compiler (#15318)

One piece of code has some ambiguous type deduction that seems to
resolve correctly for most compilers but not for the Oracle compiler.
Make it more explicit.
This commit is contained in:
Chuck Atkins 2014-12-12 10:04:47 -05:00 committed by Brad King
parent 44c6db6eb1
commit 107dcac3e0
1 changed files with 3 additions and 2 deletions

View File

@ -266,9 +266,10 @@ cmComputeLinkDepends::Compute()
// Iterate in reverse order so we can keep only the last occurrence
// of a shared library.
std::set<int> emmitted;
const std::vector<int>& cFLO = this->FinalLinkOrder;
for(std::vector<int>::const_reverse_iterator
li = this->FinalLinkOrder.rbegin(),
le = this->FinalLinkOrder.rend();
li = cFLO.rbegin(),
le = cFLO.rend();
li != le; ++li)
{
int i = *li;