Minor reorg of type conversion code to support move to using it in dispatch

This commit is contained in:
Jason Turner
2010-07-18 01:52:07 +00:00
parent 35ac7342b6
commit 3d19138c95
2 changed files with 42 additions and 2 deletions

View File

@@ -220,7 +220,7 @@ namespace chaiscript
{
std::multimap<std::string, Proxy_Function> m_functions;
std::map<std::string, Boxed_Value> m_global_objects;
std::map<std::pair<Type_Info, Type_Info>, Type_Conversion> m_type_conversions;
Type_Converter m_type_converter;
Type_Name_Map m_types;
std::set<std::string> m_reserved_words;
};
@@ -259,7 +259,7 @@ namespace chaiscript
boost::unique_lock<boost::shared_mutex> l(m_mutex);
#endif
m_state.m_type_conversions.insert(std::make_pair(std::make_pair(tc.from(), tc.to()), tc));
m_state.m_type_converter.add(tc);
}
/**