This is the mail archive of the cygwin-developers mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Aug 26 13:18, Corinna Vinschen wrote: > Why didn't you just include a tmp_pathbuf member into class pathfinder, > kind of like this: > > /* pathfinder.h */ > class pathfinder > { > tmp_pathbuf tp; > [...] > }; > > /* dlfcn.cc */ > get_full_path_of_dll() > { > pathfinder finder (); /* Has a tmp_pathbuf member */ > > [...] > finder.add_basename (basename); > [...] > finder.add_searchdir (dir, ...); > > > return true; /* finder goes out of scope, so > its tmp_pathbuf goes out of scope > so tmp_pathbuf::~tmp_pathbuf is > called and all is well. */ > } > > ? Apart from these minor bits and pieces, I really like this new pathfinder class, btw. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat
Attachment:
signature.asc
Description: PGP signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |