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 » how can i use iterators with NTL?
Re: how can i use iterators with NTL? [message #16269 is a reply to message #16262] Thu, 05 June 2008 14:30 Go to previous messageGo to previous message
ajmf77 is currently offline  ajmf77
Messages: 6
Registered: December 2006
Location: Santiago de Chile
Promising Member
thax for your quick reply!
i has some errors in my former explanation, but you catch my idea.
Well, i use Insert(...), altought Append(...) is more appropiate.
And, again over iterators, in
template <class T, class Less> void Sort(T& c, const Less& less)
if my class T have two components, i. e.
class Point
{
float x,y
.
.
.
}
and i want to use in a class like
kdtree
{
.
. some declarations
.
}
i can employ, in a STL style, a
class PXorder{
bool operator () (point &u, point &v)
{
.
. some returns, based on if u>v or u<v
.
}
}
declared and implemented within kdtree class
but if we use
Vector<point> v;
Sort(v,PXorder());

the compiler returns ERROR: 'const PXorder' as argument 'this' in PXorder(Point,Point), discard qualifiers?
any suggestion?
PD: I will post source code later, thanx!
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Can we get a Join that uses WString?
Next Topic: MemoryBreakpoint definition?
Goto Forum:
  


Current Time: Wed Jun 18 23:16:04 CEST 2025

Total time taken to generate the page: 0.04569 seconds