You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by Robert Middleton <rm...@apache.org> on 2022/11/09 02:20:34 UTC

[log4cxx] C++ Version

The current version of next_stable fails when compiled in C++11 mode
due to std::make_unique not being in that version.  This is pretty
easy to fix(Herb Sutter has an implementation of this for C++11 which
seems to be the same as GCC's: https://herbsutter.com/gotw/_102/)

I see three options here:
1. Continue to use C++11 for next_stable, reverting any make_unique calls
2. Use a custom log4cxx::make_unique function for C++11 compilers
3. Use C++14(or later)

Does anybody have any thoughts on this?  At this point I feel it is
perfectly reasonable to do any of these options, as my general rule of
thumb is to support whatever compiler the 'oldstable' version of
Debian uses(so anything released in the past ~5 years).  RHEL has a
much longer release cycle; I believe RHEL 7(which is still supported
for at least 1.5 years) would only be able to be compiled with a C++11
compiler.

-Robert Middleton

Re: [log4cxx] C++ Version

Posted by Thorsten Schöning <ts...@am-soft.de>.
Guten Tag Robert Middleton,
am Mittwoch, 9. November 2022 um 03:20 schrieben Sie:

> 2. Use a custom log4cxx::make_unique function for C++11 compilers

That sounds like a reasonable approach to me, looking at how complex
the available implementation is and compared to how likely it is that
this concrete implementation will introduce problems. The project
already switches some prefixes like std::, boost::, log4cxx:: etc. as
necessary depending on available features, doesn't it? So this could
be handled by existing concepts and there are surely some projects out
there still bound to C++11.

Mit freundlichen Grüßen

Thorsten Schöning

-- 
AM-SoFT IT-Service - Bitstore Hameln GmbH
Mitglied der Bitstore Gruppe - Ihr Full-Service-Dienstleister für IT und TK

E-Mail: Thorsten.Schoening@AM-SoFT.de
Web:    http://www.AM-SoFT.de/

Tel:   +49 5151-  9468- 0
Tel:   +49 5151-  9468-55
Mobil: +49  178-8 9468-04

AM-SoFT IT-Service - Bitstore Hameln GmbH, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 221853 - Geschäftsführer: Janine Galonska


Für Rückfragen stehe ich Ihnen jederzeit zur Verfügung. 

Mit freundlichen Grüßen, 

Thorsten Schöning


Telefon: +49 5151 9468-55
Fax: 
E-Mail: TSchoening@am-soft.de

AM-Soft IT-Service - Bitstore Hameln GmbH
Brandenburger Straße 7c
31789 Hameln

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen und ist ausschliesslich für den Adressaten bestimmt. Jeglicher Zugriff auf diese E-Mail durch andere Personen als den Adressaten ist untersagt. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Sollten Sie nicht der für diese E-Mail bestimmte Adressat sein, ist Ihnen jede Veröffentlichung, Vervielfältigung oder Weitergabe wie auch das Ergreifen oder Unterlassen von Massnahmen im Vertrauen auf erlangte Information untersagt. 

This e-mail may contain confidential and/or privileged information and is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. 

Hinweise zum Datenschutz: bitstore.group/datenschutz