Added by Plug Gulp about 2 years ago
I observed that Wt::Dbo
uses std::map
to register all the Dbo objects. And the key is C++ typeid
. This creates problem when a Dbo library user wants to specify the order of Dbo object creations. Also, the typeid
of a class may change thus making the order of initialisation dependent on compiler name mangling. There is no way for the user of the Dbo library to understand in what order the Dbo objects are created.
There may indeed be no predetermined order in which tables are created. I'm not sure what the use case would be for controlling it, though.