From 3dfe1fb8bd0b702cb41a70abb691476db0f04ff1 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Wed, 27 May 2009 17:05:42 +0000 Subject: [PATCH] Try and fix jon's print problem --- boxedcpp/test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boxedcpp/test.cpp b/boxedcpp/test.cpp index 49dbe850..ebf3c981 100644 --- a/boxedcpp/test.cpp +++ b/boxedcpp/test.cpp @@ -40,7 +40,7 @@ struct Test double md; }; -void print(const std::string &s) +void print_out(const std::string &s) { std::cout << "Printed: " << s << std::endl; } @@ -69,7 +69,7 @@ int main() //Register a new function, this one with typing for us, so we don't have to ubox anything //right here //JDT: Was giving me compiler errors (not sure why) - //ss.register_function(boost::function(&print), "print"); + ss.register_function(boost::function(&print_out), "print"); //Now we have a print method, let's try to print out the earlier example: //so, we dispatch the to_string and pass its result as a param to "print"