|
Boost Users : |
Subject: Re: [Boost-users] [Spirit?] core dump in endl?
From: Lars Viklund (zao_at_[hidden])
Date: 2010-04-12 11:15:56
On Sun, Apr 11, 2010 at 11:09:21PM -0700, Dan Bloomquist wrote:
> What is this that it would compile and run without a proper return?!?
There is no requirement on any implementation that omitting a return
should be an error, and rightly so, as you may have guaranteed that
control flow is diverted in other ways, like exceptions,
std::terminate() or other amusing ways.
However, many implementations do offer diagnostic warnings on higher
warning levels for such common and accidental omissions.
-- Lars Viklund | zao_at_[hidden]
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