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