I only have a main function. The -1 and -2 suffixes are just to explain the
problem here.
I'll check tomorrow using pointers instead of references, since I'm at home
now and don't have the source here.
I'd like to understand the problem though, since it may come up later in
similar form.
On M
Clearly you're doing _something_ wrong... but what? There's more
surrounding code (if nothing else, you can't have a function called
"main-1"), and I suspect that code might be the issue. For example,
one place I've gotten caught before is if you have
foo &a = ...;
foo &b = ...;
a = b;
That copie
The problem is that if I use main-1 the string value is lost when leaving
the scope of the attribute_value() function.
Am I doing something wrong?
On Monday, August 19, 2013 7:17:56 PM UTC+2, Ilia Mirkin wrote:
>
> Perhaps I'm dense, but what's the problem? That gdb doesn't print the
> exact t
Perhaps I'm dense, but what's the problem? That gdb doesn't print the
exact type info that you expected? That could well be the difference
between -O2 and -O0...
On Mon, Aug 19, 2013 at 9:55 AM, Alvaro Aguilera
wrote:
> Hello,
>
> I'm having a strange problem when setting an string value in a pro