Boost logo

Boost :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2004-07-26 13:02:35


Matthias Troyer wrote:
> Dear Boosters,
>
> I have encountered the following problem compiling program_options on
> the IBM Visual Age compiler 6.0. There seems to be a problem with
> exception declarations:
>
> xlC -DHAVE_CONFIG_H -I../../src -I../../src -DNDEBUG
> -I/users/matroyer/boost -DNDEBUG -q32 -qlanglvl=extended -O2 -c -M
> /users/matroyer/boost/libs/program_options/src/convert.cpp -o convert.o
> "/users/matroyer/boost/boost/program_options/detail/
> utf8_codecvt_facet.hpp", line 144.17: 1540-1163 (S) The
> exception-specification for "int
> boost::program_options::detail::utf8_codecvt_facet_wchar_t::
> do_length(mbstate_t &, const char *, const char *, std::size_t) const"
> is less restrictive than the exception-specification for "int
> std::codecvt<wchar_t,char,char *>::do_length(_St &, const _To *, const
> _To *, size_t) const throw()".
>
> Can the throw() declaration be added to do_length()?

No. The section 22.2.1.5 clearly does not have the throw() as part of
the signature. I would say this is a bug in the vacpp libraries.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk