[Libxmlplusplus-general] set_*() methods that return the input.
- From: murrayc t-online de (Murray Cumming)
- To: libxml++ <libxmlplusplus-general lists sourceforge net>
- Subject: [Libxmlplusplus-general] set_*() methods that return the input.
- Date: 16 Nov 2002 23:45:03 +0100
Some set_*() methods are like this:
const std::string& set_something(const std::string& something);
I really don't see the point of the return value. May I simplify this?
I assume that I haven't yet convinced you that const-reference return
values are a bad idea in general?
--
Murray Cumming
murray usa net
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]