Re: [Libxmlplusplus-general] const std::string& return types.



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]