Boost logo

Boost Users :

Subject: Re: [Boost-users] Lexical_cast and VC ExpresEdition 2010
From: Nat Linden (nat_at_[hidden])
Date: 2010-11-22 09:22:17


On Mon, Nov 22, 2010 at 1:56 AM, Claude <clros_at_[hidden]> wrote:

I use the line:
>
> uint32_t& c;
> string str("10);
> [...]
> c = lexical_cast<uint32_t>(str);
>
> I obtain link error with VC 2010 (I use the code::blocks IDE):
>

'c' looks like an uninitialized reference? With gcc 4.0.1 I can't even
compile that declaration:

error: 'c' declared as reference but not initialized

I would expect *some* kind of error. Not sure why it would manifest as a
link error with that compiler.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net