| 51 | std::once_flag cast_table_initialized; |
| 52 | |
| 53 | void AddCastFunctions(const std::vector<std::shared_ptr<CastFunction>>& funcs) { |
| 54 | for (const auto& func : funcs) { |
| 55 | g_cast_table[static_cast<int>(func->out_type_id())] = func; |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | void InitCastTable() { |
| 60 | AddCastFunctions(GetBooleanCasts()); |
no test coverage detected