Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » [GCC][C++11] error: call of overloaded 'pick(Upp::Any&)' is ambiguous
Re: [GCC][C++11] error: call of overloaded 'pick(Upp::Any&)' is ambiguous [message #45006 is a reply to message #45004] Sun, 16 August 2015 12:16 Go to previous messageGo to previous message
Zbych is currently offline  Zbych
Messages: 327
Registered: July 2009
Senior Member
I removed ~/.upp and ~/Upp directories and downloaded the newest version from svn (8813), but the problem persists.
It doesn't matter if I add "-std=c++11" via package organizer or setup/build methods.

I made the same test on another computer. After upgrade to svn 8813, gcc started showing the same errors.

If I remove these lines (from Defs.h):

template <typename T>
T&& pick(T&& x) { return static_cast<T&&>(x); }

gcc stops complaining.

[Updated on: Sun, 16 August 2015 12:58]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Division by 0 in Thread::Priority
Next Topic: Why Cout() and Cerr() work so different?
Goto Forum:
  


Current Time: Sun Jun 22 06:07:13 CEST 2025

Total time taken to generate the page: 0.04082 seconds