add += support for strings
This commit is contained in:
parent
e3966eeae1
commit
4d56cffb26
@ -244,6 +244,12 @@ void add_oper_add(BoxedCPP_System &s)
|
||||
register_function(s, &add<T, const T&, const T&>, "+");
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void add_oper_add_equals(BoxedCPP_System &s)
|
||||
{
|
||||
register_function(s, &addsequal<T, T>, "+=");
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void add_oper_subtract(BoxedCPP_System &s)
|
||||
{
|
||||
@ -480,6 +486,8 @@ void bootstrap(BoxedCPP_System &s)
|
||||
add_opers_arithmetic_pod(s);
|
||||
|
||||
add_oper_add<std::string>(s);
|
||||
add_oper_add_equals <std::string>(s);
|
||||
|
||||
|
||||
register_function(s, &bool_and<bool, bool>, "&&");
|
||||
register_function(s, &bool_or<bool, bool>, "||");
|
||||
|
@ -286,3 +286,4 @@ public:
|
||||
typedef Wesley_System<BoxedCPP_System> Wesley_Engine;
|
||||
|
||||
#endif /* WESLEY_ENGINE_HPP_ */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user