Boost logo

Boost Users :

From: Frank Mori Hess (fmhess_at_[hidden])
Date: 2008-05-19 21:41:46


On Monday 19 May 2008 21:30, Max wrote:
> Thank you for your clarification.
>
> I just didn't know the fact that ref type member var's could
> be assigned using '=' before you told me.

It sounds like you'd be assigning the underlying variable the references
were initialized with, but you want is to make the reference point at a
different variable?

>
> However, I'm also curious on the question you raised for me: :-)
>
> Is it possible to make a class which has reference type members
> default constructible?
>
> AFAIK, the answer is no. I hope and don't hope there's a different
> answer.

It sounds like you need to be using pointers instead of references.




Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net