commit | d3349af48b0ffa101660b370bc702454fd064968 | [log] [tgz] |
---|---|---|
author | Wenzel Jakob <wenzel.jakob@epfl.ch> | Sat Mar 26 23:04:10 2016 +0100 |
committer | Wenzel Jakob <wenzel.jakob@epfl.ch> | Sat Mar 26 23:04:10 2016 +0100 |
tree | df077d5e44973248b032f688297487801adf5895 | |
parent | 0772967ecfbc3c1cf6260bbc5277c7a2b801cec7 [diff] [blame] |
modularized logic in preceding change, fixed issue with char (fixes #150)
diff --git a/example/issues.cpp b/example/issues.cpp index e8cf831..1a4fc31 100644 --- a/example/issues.cpp +++ b/example/issues.cpp
@@ -15,4 +15,7 @@ // #137: const char* isn't handled properly m2.def("print_cchar", [](const char *string) { std::cout << string << std::endl; }); + + // #150: char bindings broken + m2.def("print_char", [](char c) { std::cout << c << std::endl; }); }