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