From 6bcc424630db1e42d2ac4169b784e40cb7e3fee0 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Sat, 30 May 2009 21:20:52 +0000 Subject: [PATCH] More stl bootstrapping help --- boxedcpp/bootstrap_stl.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/boxedcpp/bootstrap_stl.hpp b/boxedcpp/bootstrap_stl.hpp index 91e3c20..b6e5562 100644 --- a/boxedcpp/bootstrap_stl.hpp +++ b/boxedcpp/bootstrap_stl.hpp @@ -19,9 +19,22 @@ void bootstrap_random_access_container(BoxedCPP_System &system) boost::function(indexoper(&ContainerType::operator[])), "[]"); } +template +void bootstrap_assignable(BoxedCPP_System &system) +{ + system.register_function( + boost::function(&Assignable::operator=), "="); +} + template void bootstrap_container(BoxedCPP_System &system) { + bootstrap_assignable(system); + + system.register_function( + boost::function(&ContainerType::size), "size"); + system.register_function( + boost::function(&ContainerType::size), "maxsize"); } template