Hi Floyd,

Now it complains about less in the same line.

Also, it also complains about the below line,

list<unsigned int> getEntries (long  secs, int remove=1);

Error:

TimeoutHandler.h:75: error: `less' was not declared in this scope
TimeoutHandler.h:75: error: parse error before `>' token
TimeoutHandler.h:83: error: parse error before `,' token
TimeoutHandler.h:86: error: type specifier omitted for parameter
`list<unsigned
   int>'
TimeoutHandler.h:86: error: parse error before `&' token

Code :

typedef std::multimap < long, unsigned int, less<long> >
TimeoutHandlerMap;

class sgpTimeoutHandler
{
public:
  abcTimeoutHandler     ();
  ~abcTimeoutHandler    ();

  list<unsigned int> getEntries (long  secs, int remove=1);


red floyd wrote:
> Prasad wrote:
> > Hi There,
> >
> > I am trying to compile a piece of code which is compiling fine in g++
> > 2.95.3 version but it doesnt in 3.3.2.
> >
> [redacted]
> >
> > typedef multimap < long, unsigned int, less<long> > TimeoutHandlerMap;
>
> typedef std::multimap < long, unsigned int, less<long> > TimeoutHandlerMap'
>
>
> > syntax error before `;' token
> >
> > This complains clean with 2.95.3
> > 
> 
> 2.95.3 is pre-Standard, 3.3.2 is ISO Standard compliant.

_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to