Hi,
I'm finding generic container like vector but that can hold any variable just like a Python list. Thanks

I read your post, but I'm still confused a little. Can you explain a little more?

Lists in python can hold different values in same container. Here is example

a = [66.25, "Iam String", wx.Button(self, "Iam a button")]

you see, same variable holds objects, integer, double and wxObjects.
I'm looking for such variable in C++

Nope, not standard in STL. May I ask why you need this?

I have function that returns pointers to some object which two classes manipulate (only one instance of those object).Those objects differ and I had to make separate functions. In Python it was that easier and makes lazy programmers happy. I thought I can harness that in C++

Is this poor design?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.