From 995116acb444e0ce33f1971a5780153625297fdb Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Fri, 5 Jun 2009 02:36:16 +0000 Subject: [PATCH] Fix bug with operator== bootstrapping --- boxedcpp/bootstrap.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/boxedcpp/bootstrap.hpp b/boxedcpp/bootstrap.hpp index 084c480c..701cd56c 100644 --- a/boxedcpp/bootstrap.hpp +++ b/boxedcpp/bootstrap.hpp @@ -28,8 +28,8 @@ Ret multiply(P1 p1, P2 p2) return p1 * p2; } -template -Ret equals(P1 p1, P2 p2) +template +bool equals(P1 p1, P2 p2) { return p1 == p2; } @@ -72,10 +72,10 @@ void bootstrap(BoxedCPP_System &s) s.register_function(boost::function), "/"); s.register_function(boost::function), "/"); - s.register_function(boost::function(&equals), "=="); - s.register_function(boost::function(&equals), "=="); - s.register_function(boost::function(&equals), "=="); - s.register_function(boost::function(&equals), "=="); + s.register_function(boost::function(&equals), "=="); + s.register_function(boost::function(&equals), "=="); + s.register_function(boost::function(&equals), "=="); + s.register_function(boost::function(&equals), "=="); s.register_function(boost::function(&multiply), "*"); s.register_function(boost::function(&multiply), "*");