mirror of
https://github.com/boostorg/python.git
synced 2026-01-22 17:32:55 +00:00
API changes + signature template and get_signature(sig) functions
[SVN r14807]
This commit is contained in:
@@ -52,13 +52,13 @@ BOOST_PYTHON_MEMBER_FUNCTION_GEN(X_bar_stubs, bar, 1, 4)
|
||||
BOOST_PYTHON_MODULE_INIT(defaults_ext)
|
||||
{
|
||||
module m("defaults_ext");
|
||||
m.def(foo_stubs(), args<std::string, int, char, std::string, double>());
|
||||
m.def(foo_stubs(), signature<std::string(*)(int, char, std::string, double)>());
|
||||
|
||||
class_<X> xc("X");
|
||||
m.add(xc);
|
||||
|
||||
xc.def_init();
|
||||
xc.def(X_bar_stubs(), args<std::string, X const&, int, char, std::string, double>());
|
||||
xc.def(X_bar_stubs(), signature<std::string(X::*)(int, char, std::string, double)>());
|
||||
}
|
||||
|
||||
#include "module_tail.cpp"
|
||||
|
||||
Reference in New Issue
Block a user