Hello,

On Sun, May 26, 2024 at 04:16:44PM +0200, SET wrote:

> Hello,
> 
> I'm trying to build a C++ application that requires AOO and libphonenumber. 
> The latter requires c++17, which does not accept AOO headers because of the 
> throw(...) statements in the function signatures. It builds with clang but 
> constantly fails with g++.
> 
> Sample error message:
> 
>     openoffice4/sdk/include/com/sun/star/text/XTextCursor.hdl:29:57: error: 
> ISO 
> C++17 does not allow dynamic exception specifications
>     29 |     virtual void SAL_CALL gotoEnd( ::sal_Bool bExpand ) throw 
> (::com::sun::star::uno::RuntimeException) = 0;
> 
> It's OK for me to go with clang, the unknown being 'How long will it build?'. 
> I just wish to know it there's some way to build with g++ also.

IMHO we should just get rid of those "throw (...)" specifications.

Roughly counted, there are 17,000 in header files only.

If we get a bit of consensus, it may worth start opening pull request
to remove such specifications from the most relevant header files.

What do others think?
-- 
Arrigo

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org

Reply via email to