std::string C::a_func() throw() {return data_member;} - throw or not?

From: Asfand Yar Qazi (im_not_giving_it_here_at_i_hate_spam.com)
Date: 03/22/04


Date: Mon, 22 Mar 2004 20:53:35 +0000

Hi,

In the following:
std::string
C::a_func() throw()
{
        return data_member;
}

Will the copying of data_member to std::string throw an exception if
memory can't be allocated for the copy that is returned? In other
words, can this be declared throw()?

Thanks,
        Asfand Yar

--
http://www.it-is-truth.org/