Fix linux build error discovered with 4.0.0 release
This commit is contained in:
parent
deef33640c
commit
7917ea02dc
@ -631,9 +631,6 @@ namespace chaiscript
|
|||||||
typedef typename String::size_type (String::*find_func_ptr)(const String &, typename String::size_type) const;
|
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 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::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::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_first_of)))), "find_first_of");
|
||||||
@ -641,8 +638,7 @@ namespace chaiscript
|
|||||||
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_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(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, &String::substr>), "substr");
|
||||||
m->add(fun(&detail::substr_helper<String, static_cast<substr_ptr>(&String::substr)>), "substr");
|
|
||||||
|
|
||||||
m->add(fun(&String::c_str), "c_str");
|
m->add(fun(&String::c_str), "c_str");
|
||||||
m->add(fun(&String::data), "data");
|
m->add(fun(&String::data), "data");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user