Commit graph

7 commits

Author SHA1 Message Date
King_DuckZ
72da0b8d87 Fix build when std::string is a lone parameter
The "any tuple-like" thing was nice but
it was confusing when passing for example
a std::string, which is a typedef to a
tuple-like thing. Making a custom
ConstructorParameters struct is more clear
both to users and to the compiler.
2024-05-24 17:12:04 +02:00
King_DuckZ
addb48822f Refactor so that make_method_bindable also accepts free functions now 2022-05-19 19:22:20 +02:00
King_DuckZ
1fa6d62f17 Add support for registering foreign methods that return foreign objects
Still a bit work in progress but functioning
2022-05-18 18:48:18 +02:00
King_DuckZ
816a8af654 Fix memory leak, improve code 2022-05-15 20:17:42 +02:00
King_DuckZ
692393285d Fix memory leaks 2022-05-15 19:19:56 +02:00
King_DuckZ
4d3dfce93f Improve and cleanup make_foreign_class()
No need to have two versions of this.
Static assert when users specify ambiguous overloads.
Currently overloads are discriminated only by
parameter count, not types, so we need to enforce this.
2022-05-15 17:01:57 +02:00
King_DuckZ
b8066a3f34 Add working example of constructor overloading 2022-05-15 16:03:29 +02:00