Permalink
Browse files

Fix linux build error discovered with 4.0.0 release

  • Loading branch information...
1 parent deef336 commit 7917ea02dc5b4646433809d3ecfc1cf8d753ea66 @lefticus lefticus committed Nov 18, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 include/chaiscript/dispatchkit/bootstrap_stl.hpp
@@ -631,18 +631,14 @@ namespace chaiscript
typedef typename String::size_type (String::*find_func_ptr)(const String &, typename String::size_type) const;
typedef boost::function<int (const String *, const String &, int)> find_func;
- typedef String (String::*substr_ptr)(typename String::size_type, typename String::size_type) const;
- typedef boost::function<String (const String *, int, int)> substr_func;
-
m->add(fun(find_func(detail::return_int(static_cast<find_func_ptr>(&String::find)))), "find");
m->add(fun(find_func(detail::return_int(static_cast<find_func_ptr>(&String::rfind)))), "rfind");
m->add(fun(find_func(detail::return_int(static_cast<find_func_ptr>(&String::find_first_of)))), "find_first_of");
m->add(fun(find_func(detail::return_int(static_cast<find_func_ptr>(&String::find_last_of)))), "find_last_of");
m->add(fun(find_func(detail::return_int(static_cast<find_func_ptr>(&String::find_first_not_of)))), "find_first_not_of");
m->add(fun(find_func(detail::return_int(static_cast<find_func_ptr>(&String::find_last_not_of)))), "find_last_not_of");
-
- m->add(fun(&detail::substr_helper<String, static_cast<substr_ptr>(&String::substr)>), "substr");
+ m->add(fun(&detail::substr_helper<String, &String::substr>), "substr");
m->add(fun(&String::c_str), "c_str");
m->add(fun(&String::data), "data");

0 comments on commit 7917ea0

Please sign in to comment.