Re: [Libxmlplusplus-general] const std::string& return types.
- From: murrayc t-online de (Murray Cumming)
- To: libxml++ <libxmlplusplus-general lists sourceforge net>
- Subject: Re: [Libxmlplusplus-general] const std::string& return types.
- Date: 09 Dec 2002 21:51:25 +0100
Here's another reason to use e.g.
std::string get_content() const;
instead of
const std::string& content() const;
:
It makes it difficult to change the API's implementation. For instance,
you can't return a local "".
--
Murray Cumming
murray usa net
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]