diff --git a/include/chaiscript/dispatchkit/bootstrap_stl.hpp b/include/chaiscript/dispatchkit/bootstrap_stl.hpp index 85178b1..b26e9ca 100644 --- a/include/chaiscript/dispatchkit/bootstrap_stl.hpp +++ b/include/chaiscript/dispatchkit/bootstrap_stl.hpp @@ -148,6 +148,7 @@ namespace chaiscript }; namespace detail { + /** * Add Bidir_Range support for the given ContainerType */ @@ -259,7 +260,6 @@ namespace chaiscript m->add(fun( std::function( [](const ContainerType *a) { return a->size(); } ) ), "size"); m->add(fun( std::function( [](const ContainerType *a) { return a->empty(); } ) ), "empty"); m->add(fun( std::function( [](ContainerType *a) { a->clear(); } ) ), "clear"); - return m; } @@ -391,7 +391,7 @@ namespace chaiscript template ModulePtr unique_associative_container_type(const std::string &/*type*/, ModulePtr m = ModulePtr(new Module())) { - m->add(fun(std::function(std::mem_fn(&ContainerType::count))), "count"); + m->add(fun(&ContainerType::count), "count"); return m; }