[CLN-list] Overriding read_number_bad_syntax on OS X

Richard B. Kreckel kreckel at ginac.de
Fri May 18 07:57:14 CEST 2007


Ron Garret wrote:
> Like a charm, except for one thing.  This code snippet:
> 
> class out_of_range {};
> extern out_of_range range_exception;
> 
> now results in this error (referring to the second line):
> 
> error: 'out_of_range' does not name a type
> 
> This used to work, and if I rename out_of_range to Out_of_range then  it 
> works again.  So it appears that you made some change to the  include 
> file that makes this break, but I can't for the life of me  figure out 
> what it might be since nothing even remotely resembling  the string 
> "out_of_range" appears anywhere in cln/*.h.


Well, std::out_of_range is an exception type pulled in from the 
<stdexcept> header via include/cln/number_io.h.

> C++ can be quite the infuriating programming language.

Such things happen. Grep for eksplicit in the CLN sources.  :-)

   -richy.
-- 
Richard B. Kreckel
<http://www.ginac.de/~kreckel/>


More information about the CLN-list mailing list