From 4d56cffb268ecddf556eddf9f77e989ca32999ea Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Wed, 10 Jun 2009 23:22:31 +0000 Subject: [PATCH] add += support for strings --- boxedcpp/bootstrap.hpp | 8 ++++++++ wesley/wesley_engine.hpp | 1 + 2 files changed, 9 insertions(+) diff --git a/boxedcpp/bootstrap.hpp b/boxedcpp/bootstrap.hpp index 2e5b8fb..232304b 100644 --- a/boxedcpp/bootstrap.hpp +++ b/boxedcpp/bootstrap.hpp @@ -244,6 +244,12 @@ void add_oper_add(BoxedCPP_System &s) register_function(s, &add, "+"); } +template +void add_oper_add_equals(BoxedCPP_System &s) +{ + register_function(s, &addsequal, "+="); +} + template void add_oper_subtract(BoxedCPP_System &s) { @@ -480,6 +486,8 @@ void bootstrap(BoxedCPP_System &s) add_opers_arithmetic_pod(s); add_oper_add(s); + add_oper_add_equals (s); + register_function(s, &bool_and, "&&"); register_function(s, &bool_or, "||"); diff --git a/wesley/wesley_engine.hpp b/wesley/wesley_engine.hpp index 9eddd43..e55b5f0 100644 --- a/wesley/wesley_engine.hpp +++ b/wesley/wesley_engine.hpp @@ -286,3 +286,4 @@ public: typedef Wesley_System Wesley_Engine; #endif /* WESLEY_ENGINE_HPP_ */ +