[mythtv] [PATCH] DisplayResScreen.h missing <algorithm>

Ivor Hewitt ivor at ivor.org
Fri Apr 8 19:12:28 UTC 2005


On Friday 08 Apr 2005 18:44, Daniel Kristjansson wrote:
> On Fri, 2005-04-08 at 16:56 +0100, Ivor Hewitt wrote:
> > Fixes current CVS compilation for me:
> >
> > Index: DisplayResScreen.h
> > ===================================================================
> > RCS file: /var/lib/mythcvs/mythtv/libs/libmyth/DisplayResScreen.h,v
> > retrieving revision 1.1
> > diff -u -3 -p -u -r1.1 DisplayResScreen.h
> > --- DisplayResScreen.h  7 Apr 2005 15:33:49 -0000       1.1
> > +++ DisplayResScreen.h  8 Apr 2005 15:55:41 -0000
> > @@ -6,6 +6,7 @@ using namespace std;
> >  #include <qstringlist.h>
> >  #include <vector>
> >  #include <map>
> > +#include <algorithm>
>
> I've added this, but can you check if you can add that include to
> DisplayResScreen.cpp instead? I'm guessing it's the "find()" algorithm
> that's missing.
>
Hi,

You could as long as it's before the DisplayResScreen.h include, but it's the 
"sort" call in the inlined AddRefresh call in the header file that needs the 
algorithm. So if anything else included the DisplayResScreen header they'd 
need algorithm too. 


-- 
Ivor
http://www.ivor.it


More information about the mythtv-dev mailing list