![]() |
|
#1
|
|||
|
|||
Sorting a vector of structures within a structureHello,
I successfully sorted a vector of structures but am having trouble doing the same for a vector of structures in a structure... Here is the code.. CPP / C++ / C Code:
I get a compile error saying... "JPG.cpp argument of type `bool (JPG: Please help... Jon |
|
#2
|
|||
|
|||
Re: Sorting a vector of structures within a structureSorry, predicate function should read
CPP / C++ / C Code:
|
|
#3
|
|||
|
|||
Re: Sorting a vector of structures within a structureI'm an idiot... sorting predicate function should read...
CPP / C++ / C Code:
still need help though... |
|
#4
|
||||
|
||||
Re: Sorting a vector of structures within a structureI wouldn't go the way you have about this problem. However, you can solve the issue as it is now by simply making the MyDataSortPredicate member function static, and thus a valid functor.
Let me know if that doesn't work, I don't have a compiler available. Best regards, Lucian __________________
Please read these Guidelines before posting on the forum "A person who never made a mistake never tried anything new." Einstein |
|
#5
|
|||
|
|||
Re: Sorting a vector of structures within a structureWow. That seemed to work but I don't know why.
And you hinted you would go about my program another way. What way is that? Thanks for your helpl, Jon |
Recent GIDBlog
Toyota - 2008 November Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mapping C Structures: IP_ADAPTER_ADDRESSES to VB | Doug Thomas | C Programming Language | 15 | 22-Dec-2006 04:55 |
| Trying to make a vector of structures, need help | CT++ | C++ Forum | 4 | 10-May-2005 17:00 |
| Delete and diplaying probrlem with structures. | glulu76 | C++ Forum | 2 | 09-May-2005 18:23 |
| [GIM] gim.h | dsmith | C Programming Language | 0 | 18-Jan-2005 09:48 |
| [CONTEST?]Data Structure Test | dsmith | C Programming Language | 2 | 06-Jun-2004 16:13 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The