« Return to Thread: boost::random distribution is not working within a custom class

Re: boost::random distribution is not working within a custom class

by Bugzilla from janitor048@googlemail.com :: Rate this Message:

Reply to Author | View in Thread


2009/7/8 Ovanes Markarian <om_boost@...>
Hi!

In addition to Steven's remark: May be it relates to minimal example, but why do you need a member pointer here? And why don't you delete it?

I think that would be a better approach:

Yes, the thing about not deleting the member pointer was indeed due to the minimal example - I omitted some stuff and with it the destructor. But you are right, it should work perfectly with a normal member. I think I'll change that for reasons of clarity - don't really know why I made it a pointer in the first place, probably just came into my mind.


_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users

 « Return to Thread: boost::random distribution is not working within a custom class