[Libxmlplusplus-general] set_*() methods that return the input.



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]