Boost logo

Boost :

From: Richard Webb (richard.webb_at_[hidden])
Date: 2008-04-22 05:38:29

Paul A Bristow <pbristow <at>> writes:

> >-----Original Message-----
> >From: boost-bounces <at>
> >[mailto:boost-bounces <at>] On Behalf Of Stephan Diederich
> >Sent: 08 April 2008 20:53
> >To: boost <at>
> >Subject: [boost] [1.35][lexical_cast][concept check][range]
> >Build error andwarnings with MSVC8 on Warning Level 4
> >
> >As we tried to update to 1.35 today, we found some warnings with MSVC
> >on Warning Level 4 in:
> >
> >lexical_cast:
> >There was a return statement after a call to throw_exception which
> >causes a unreachable code warning.
> >I can see no problem by just removing that return.
> >see

Speaking of unreachable code, i get some similar warnings from variant (when
building in release mode):

boost\variant\detail\visitation_impl.hpp(205) : warning C4702: unreachable code
boost\variant\detail\visitation_impl.hpp(180) : warning C4702: unreachable code
boost\variant\detail\visitation_impl.hpp(252) : warning C4702: unreachable code
boost\variant\detail\visitation_impl.hpp(280) : warning C4702: unreachable code

There are some 'should never be here at runtime:' comments in the code in
question, but it would still be nice to silence the warnings 'officially'.

Richard Webb

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