
27 Jan
2008
27 Jan
'08
5:55 p.m.
Hi all, equality semantic bool b=(&(fw1.get())==&(fw2.get())); versus bool b=((fw1.get())==(fw2.get())); Why not delegate this responsability to the factory, the factory knows better when the two handles are equal, isn't it? friend bool operator==(const flyweight& x,const flyweight& y) { return core:are_equals(x.h==y.h); } The factories provided by the library could define this are_equals function as return (&x==&y); Regards--------------------------- Vicente Juan Botet Escriba