3 Aug
2015
3 Aug
'15
12:41 a.m.
On 2/08/2015 20:05, Will Hall wrote:
struct A { static string value; };
struct B : public A { static string value; };
string A::value("A"); string B::value("B");
While I can't answer your question directly, I can tell you that this is bad coding practice in C++. Usually it stems from a misunderstanding, while other times it's just a bad design.
So, to summarise, any idea how to provide polymorphic Python class variables in boost::python?
Static/class fields cannot be polymorphic, by definition.