The function returns ColTypeUnknown on not-found.
Also the typeid check is superfluous as the static function genType of that type should per definition return an instance of itself. An assertion is added instead.
In case new genType's are implemented, this will guarantee that no mem-leaks can occur.
The function returns
ColTypeUnknown
on not-found. Also the typeid check is superfluous as the static functiongenType
of that type should per definition return an instance of itself. An assertion is added instead.In case new
genType
's are implemented, this will guarantee that no mem-leaks can occur.