$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Noel Yap (Noel.Yap_at_[hidden])
Date: 2003-02-27 16:04:02
I'm using boost::any until boost::variant is out.
My question is about the syntax of boost::any_cast. Why does the follow
not work:
return *boost::any_cast< double* >(
&_attributeMap[ "securitized-balance" ] ) ;
while the following does:
return *boost::any_cast< double >(
&_attributeMap[ "securitized-balance" ] ) ;
IMHO, it would be more consistent with the existing casting operators
for the user to have to explicitly say the full type (eg double* )
rather than the casting operator implicitly knowing the type.
Thanks,
Noel
-- NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.