Boost logo

Boost :

From: Carlo Wood (carlo_at_[hidden])
Date: 2002-08-30 09:52:26

On Fri, Aug 30, 2002 at 03:54:20PM +0200, Thomas Witt wrote:
> > void demangle_type(std::string & t_o, std::string const & t_i);
> > void demangle_symbol(std::string & s_o, std::string const & s_i);
> Take my apologies for the possibly dumb question, but what's wrong with
> std::string demangle_type(std::string const & t_i);

The function appends its data to the string.
This allows to 'construct' a string without unnecessary
need to copy strings.

For example:

std::string out = "You are inside ";
demangle(out, mangled_function_name);

Your prototype can always be added as a wrapper without extra cost.

Carlo Wood <carlo_at_[hidden]>

Boost list run by bdawes at, gregod at, cpdaniel at, john at