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 » SortedVectorMap compile error
SortedVectorMap compile error [message #39588] Tue, 02 April 2013 16:38 Go to next message
busiek is currently offline  busiek
Messages: 64
Registered: February 2011
Location: Poland
Member
I gave a try to new containers. I looks that interface functions are not completely finished. For instance using SortedVectorMap::GetAdd produce compile error with g++-4.7:
Core/InVector.h:578:72: error: ‘At’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
Core/InVector.h:578:72: note: declarations in dependent base ‘Upp::SortedAMap<int, int, Upp::StdLess<int>, Upp::Slaved_InVector__<int> >’ are not found by unqualified lookup
Core/InVector.h:578:72: note: use ‘this->At’ instead
Re: SortedVectorMap compile error [message #39602 is a reply to message #39588] Wed, 03 April 2013 19:44 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
busiek wrote on Tue, 02 April 2013 10:38

I gave a try to new containers. I looks that interface functions are not completely finished. For instance using SortedVectorMap::GetAdd produce compile error with g++-4.7:
Core/InVector.h:578:72: error: ‘At’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
Core/InVector.h:578:72: note: declarations in dependent base ‘Upp::SortedAMap<int, int, Upp::StdLess<int>, Upp::Slaved_InVector__<int> >’ are not found by unqualified lookup
Core/InVector.h:578:72: note: use ‘this->At’ instead



GCC 4.6.3 compiles it just fine, but I think I have identified the issue (and 4.7 is right).

Please try new svn version. Or replace GetAdd in SortedVectorMap with

	T&       GetAdd(const K& k)                     { return B::At(FindAdd(k)); }
	T&       GetAdd(const K& k, const T& x)         { return B::At(FindAdd(k, x)); }
Re: SortedVectorMap compile error [message #39610 is a reply to message #39602] Thu, 04 April 2013 16:02 Go to previous message
busiek is currently offline  busiek
Messages: 64
Registered: February 2011
Location: Poland
Member
Thanks, now it compiles with g++-4.7 using latest svn.
Previous Topic: Report package - some changes
Next Topic: small dli enhancement
Goto Forum:
  


Current Time: Tue Apr 16 08:03:27 CEST 2024

Total time taken to generate the page: 0.03610 seconds