well... what you're trying to do is hard in nature. Something worth
keeping in mind, though, is that if the compiler can instantiate your
function template for assignment then the resulting type is known at
compile time. Determination of that type is independent of the
semantics of the actual assignment - whether you use a deep copy or a
shallow one, whether you ref count or not, all of those choices are
independent of your ability to properly instantiate an object to hold
the result. The alternative is to kludge and make an inhomogeneous
bag style container - not recommended.
bartek <bartekd@qwertyuiop.o2.pl> wrote in message news:<Xns94999224CD62bartekdqwertyuiopo2p@153.19.2 51.200>...[color=blue]
>
hatespyware@yahoo.com (anon luker) wrote in
> news:534d31a2.0402231536.ba067f1@posting.google.co m:
>[color=green]
> > There are many who believe that the auto keyword should be overloaded
> > to ease your pain (google author:David Abrahams auto proposal). You
> > might find it worthwhile to look at spirit to see how they do it, too.
> > Static binding is possible if you're willing to tolerate ugly code.[/color]
>
> I am aware of the 'auto proposal'. I wouldn't mind it, of course. It
> doesn't help me at the moment, though.
>
> I'm looking inside of Spirit at the moment, but it's ... kind of ...
> complex... MY goodness!!! Am I going to figure it out someday AT ALL!?
> Doh!
>
> Cheers,
> bartek[/color]