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
- Next message: Claudio Puviani: "Re: spaghetti code"
- Previous message: red floyd: "Smart Pointers and operator ->*"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/
- Next message: Claudio Puviani: "Re: spaghetti code"
- Previous message: red floyd: "Smart Pointers and operator ->*"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]