[polymorphic_downcast]

Hi, is there any reason why we cannot say Base& get_ref(); Derived& boost::polymorphic_downcast<Derived&>( get_ref() ); ? It works with pointers, shouldn't we overload for references? -Thorsten -- Thorsten Ottosen ---------------------------- www.dezide.com http://www.cs.aau.dk/index2.php?content=Research/mi www.boost.org www.open-std.org/JTC1/SC22/WG21/

"Thorsten Ottosen" <nesotto@cs.auc.dk> wrote in message news:d5todb$5hk$1@sea.gmane.org...
Hi,
is there any reason why we cannot say
Base& get_ref(); Derived& boost::polymorphic_downcast<Derived&>( get_ref() );
?
It works with pointers, shouldn't we overload for references?
I've even implemented one, updated docs and submitted. See thread with "cast.hpp" in it's name Gennadiy

"Gennadiy Rozental" <gennadiy.rozental@thomson.com> wrote in message news:d5tp6p$97c$1@sea.gmane.org... | | "Thorsten Ottosen" <nesotto@cs.auc.dk> wrote in message | news:d5todb$5hk$1@sea.gmane.org... | > Hi, | > | > is there any reason why we cannot say | > | > Base& get_ref(); | > Derived& boost::polymorphic_downcast<Derived&>( get_ref() ); | > | > ? | > | > It works with pointers, shouldn't we overload for references? | | I've even implemented one, updated docs and submitted. See thread with | "cast.hpp" in it's name Ok, I can't find it in the cvs, so I assume it is not part of 1.33? -Thorsten
participants (2)
-
Gennadiy Rozental
-
Thorsten Ottosen