Closed Weeena closed 8 years ago
Thanks. Which platform/compiler are you using? Be interested to see the errors. Working on a fix.
Ok, have checked a fix in, with tests. Let me know if that works for you.
Once again thank you for your super quick reaction. And - yes, it works for me! By the way: For development, our primary platform is Windows, VS2015. But our project is required to run on Linux, too, there we have Eclipse and gcc 4.8 (I hope I got this right).
Thanks. Useful to know platform details. I do want the library portable. I'm a Mac user on clang. Had some issues with earlier versions of MSVC. Lots of subtle bugs. I think C++11 support there lags the others. All seems to work at the moment.
If I have some template class e.g.
and like to declare this class to ponder with e.g.
I get several compiler errors (I can post you details if you think it is necessary).
To me it seems that the reason for the failure is
detail::IsSmartPointer
:detail::IsSmartPointer
erroneously detects my templated class as a smart pointer, hence parts of ponder assume that the desired type isint
rather thanCTestClass<int>
. This leads to compiler errors of the kind that there is no conversion betweenCTestClass<int>*
andint*
.