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   |
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
|
|
|
Goto Forum:
Current Time: Sun Jun 22 06:07:13 CEST 2025
Total time taken to generate the page: 0.04082 seconds
|