Eliminate boost::lexical_cast usage completely #39

This commit is contained in:
Jason Turner
2012-06-03 09:20:15 -06:00
parent 832df7f9e8
commit d2aba2ef56
5 changed files with 28 additions and 20 deletions

View File

@@ -141,7 +141,9 @@ int main(int /*argc*/, char * /*argv*/[]) {
//Creating a functor on the stack and using it immediatly
int x = chai.eval<boost::function<int (int, int)> >("fun (x, y) { return x + y; }")(5, 6);
log("Functor test output", boost::lexical_cast<std::string>(x));
std::stringstream ss;
ss << x;
log("Functor test output", ss.str());
chai.add(var(boost::shared_ptr<int>()), "nullvar");
chai("print(\"This should be true.\"); print(nullvar.is_var_null())");