Open jgehring opened 7 years ago
I think this is probably a problem with Ponder not supporting smart pointers. Related to #41.
I'd suggest just using normal ones until I get round to looking at this (which may not be soon as I have little spare time at the moment).
Ok, thanks! I think the issue is that the ValueMapper
trait for smart pointers simply forwards the underlying type. I'd guess that the from
functions would need to be reimplemented, but without further knowledge of ponder's internals I'm not sure what the right way to do this would be.
I've been trying to declare constructors and functions that take
std::shared_ptr<U>
argument, whereU
is a type that has been previously declared viaponder::Class::declare<U>
. A small example test case is here. However, I'm running into template issues like the following:I'm wondering whether I'm doing something wrong or whether there's missing support for smart pointer arguments.