Bug 291912

Summary: qsqrt ambiguity
Product: [Applications] kgeography Reporter: tropikhajma <tropikhajma>
Component: generalAssignee: Albert Astals Cid <aacid>
Status: RESOLVED FIXED    
Severity: normal CC: lauranger
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Solaris   
Latest Commit: Version Fixed In: 4.8.1
Sentry Crash Report:
Attachments: patch

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