Kayvan A. Sylvan wrote:
> Latest CVS:
> ../../../../lyx/src/frontends/xforms/FormFiledialog.C:121:
> call of overloaded `tostr(uid_t&)' is ambiguous
I am somewhat baffled about _why_ this is coming up now, but does the
attached patch fix things for you?
--
Angus
Index: src/frontends/xforms/FormFiledialog.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/FormFiledialog.C,v
retrieving revision 1.43
diff -u -p -r1.43 FormFiledialog.C
--- src/frontends/xforms/FormFiledialog.C 23 Aug 2003 00:16:41 -0000 1.43
+++ src/frontends/xforms/FormFiledialog.C 4 Sep 2003 21:49:52 -0000
@@ -118,7 +118,7 @@ private:
void UserCache::add(uid_t ID) const
{
struct passwd const * entry = getpwuid(ID);
- users[ID] = entry ? entry->pw_name : tostr(ID);
+ users[ID] = entry ? entry->pw_name : tostr(int(ID));
}
@@ -151,7 +151,7 @@ string const & GroupCache::find(gid_t ID
void GroupCache::add(gid_t ID) const
{
struct group const * entry = getgrgid(ID);
- groups[ID] = entry ? entry->gr_name : tostr(ID);
+ groups[ID] = entry ? entry->gr_name : tostr(int(ID));
}
// local instances