Bug 291912 - qsqrt ambiguity
Summary: qsqrt ambiguity
Status: RESOLVED FIXED
Alias: None
Product: kgeography
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Albert Astals Cid
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-19 00:13 UTC by tropikhajma
Modified: 2012-03-04 22:08 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.8.1


Attachments
patch (560 bytes, patch)
2012-01-19 00:13 UTC, tropikhajma
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tropikhajma 2012-01-19 00:13:19 UTC
Created attachment 67985 [details]
patch

Version:           unspecified (using Devel) 
OS:                Solaris

build of kgeography 4.7.97 fails with the below error.
The attached patch fixes it for me

Reproducible: Always

Steps to Reproduce:
try to build it

Actual Results:  
line 89: Error: Overloading ambiguity between "std::sqrt(double)" and "std::sqrt(float)".


Expected Results:  
builds ok

Solaris 11, Solaris Studio 12.3, x86
Comment 1 Albert Astals Cid 2012-01-22 15:02:45 UTC
Git commit 3661d037a4f2ddaf875fbb660a632a3b7e56a148 by Albert Astals Cid.
Committed on 22/01/2012 at 16:02.
Pushed by aacid into branch 'master'.

Get rid of ambiguity by casting to double

M  +1    -1    src/placemapwidget.cpp

http://commits.kde.org/kgeography/3661d037a4f2ddaf875fbb660a632a3b7e56a148
Comment 2 Albert Astals Cid 2012-01-22 15:03:13 UTC
Git commit e9b303a1a6581b81f81c0af2613eb76464ff4967 by Albert Astals Cid.
Committed on 22/01/2012 at 16:02.
Pushed by aacid into branch 'KDE/4.8'.

Get rid of ambiguity by casting to double
(cherry picked from commit 3661d037a4f2ddaf875fbb660a632a3b7e56a148)

M  +1    -1    src/placemapwidget.cpp

http://commits.kde.org/kgeography/e9b303a1a6581b81f81c0af2613eb76464ff4967