Josh Dybnis on 8 Jul 2003 10:43:01 -0000 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
[ALACPP] chapter 8 |
I would never use the factory template in my code. It is a degenerate abstraction over a map template. I would always just use a map directly. I am calling it degenerate because it does not add any additional functionality or abstract away any of the details of a map. All it does is rename the interface methods: map::insert becomes Factory::Register, map::erase become Factory::Unregister, and map::find becomes Factory::CreateObject. What's the point? -Josh _______________________________________________ alacpp mailing list alacpp@xxxxxxxxxxx http://lists.ellipsis.cx/mailman/listinfo/alacpp