[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 2.95.3 vs 3.3.2 - Help
From: |
Prasad |
Subject: |
Re: 2.95.3 vs 3.3.2 - Help |
Date: |
20 Sep 2006 13:17:14 -0700 |
User-agent: |
G2/1.0 |
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.