Hi all,

Here's a question for all the C++ crack monkeys. Is it possible
to return an std::string from a function?

Something like:

std::string &
return_string ()
{
    std::string s ;

    // Do something with s.

    return s ;
}

-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo
+-----------------------------------------------------------+
"Perl - The only language that looks the same before and after 
RSA encryption." -- Keith Bostic
_______________________________________________
coders mailing list
coders@slug.org.au
http://lists.slug.org.au/listinfo/coders

Reply via email to