Make def more efficient, fix to_string(string)

This commit is contained in:
Jason Turner
2014-11-13 12:28:52 -07:00
parent 63a083b47b
commit cf49b1b30c
2 changed files with 4 additions and 8 deletions

View File

@@ -443,7 +443,7 @@ namespace chaiscript
operators::assign<bool>(m);
operators::equal<bool>(m);
m->add(fun(&to_string<const std::string &>), "to_string");
m->add(fun<std::string (const std::string &t_ss)>([](const std::string &s) -> std::string { return s; }), "to_string");
m->add(fun(&Bootstrap::bool_to_string), "to_string");
m->add(fun(&unknown_assign), "=");
m->add(fun(&throw_exception), "throw");