![]() |
|
#1
|
|||
|
|||
STL (algorithm): for_each problemHello...
I am trying to compile a program, however, the following section of the code gives me an error. CPP / C++ / C Code:
And, the error is: sig.C: In method `void sig::kill(int)': sig.C:171: type `sig::kill(int)::procsig' composed from a local class is not a valid template-argument How can I go about fixing this??? Do I need to creaete another class that may contain the struct procsig??? I am very confused. Thank you very much in advance. |
|
#2
|
|||
|
|||
|
It must be the fact that the procsig class is not available outside the function, to the for_each() function. I suggest you declare this struct at the top of the class, so it's available to all members of the class.
GF |
Recent GIDBlog
Meeting the local Iraqis by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem with php5 cgi installation | fab13 | Apache Web Server Forum | 3 | 19-Nov-2003 09:11 |
| unwanted scrollbar problem | kelly001 | Web Design Forum | 3 | 24-Oct-2003 10:44 |
| problem with creating class | mohammed | C++ Forum | 1 | 11-Oct-2003 09:04 |
| folder problem in trees | zuzupus | MySQL / PHP Forum | 23 | 26-Sep-2003 07:32 |
| join problem | zuzupus | MySQL / PHP Forum | 0 | 14-Aug-2003 05:11 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The