So ... do we have a consensus here ?

 - initialize to either unset or unknown (on a case-by-case basis) if
NDEBUG is not set
 - leave uninitialized otherwise

Sylvain

2014-11-11 5:54 GMT-02:00 Steffen Planthaber <[email protected]>:
> Hi,
>
> Am 10.11.2014 um 18:19 schrieb Sylvain Joyeux:
>>> Initialize members by default on debug-level, keep them unitialized when
>>> on release.
>>> needs_opt (with debug-symbols) should be uninitialized too.
>>
>> I like the general idea, but would restrict it to full-release (i.e.
>> not WithDebInfo).
>>
>
> We could reuse the existing c++ NDEBUG flag (no debug), which is
> responsible for swiching off assertions in release builds. Afaik it is
> set by cmake in release mode, but not in WithDebInfo as we need it for
> your proposal.
>
> Best, Steffen
>
>
> --
>   Steffen Planthaber
>   Weltraumrobotik
>
>   Besuchsadresse der Nebengeschäftstelle:
>   DFKI GmbH
>   Robotics Innovation Center
>   Robert-Hooke-Straße 5
>   28359 Bremen, Germany
>
>   Postadresse der Hauptgeschäftsstelle Standort Bremen:
>   DFKI GmbH
>   Robotics Innovation Center
>   Robert-Hooke-Straße 1
>   28359 Bremen, Germany
>
>   Tel.:     +49 421 178 45-4125
>   Zentrale: +49 421 178 45-0
>   Fax:      +49 421 178 45-4150 (Faxe bitte namentlich kennzeichnen)
>   E-Mail:   [email protected]
>
>   Weitere Informationen: http://www.dfki.de/robotik
>   -----------------------------------------------------------------------
>   Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
>   Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
>   Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
>   (Vorsitzender) Dr. Walter Olthoff
>   Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
>   Amtsgericht Kaiserslautern, HRB 2313
>   Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
>   USt-Id.Nr.:    DE 148646973
>   Steuernummer:  19/673/0060/3
>   -----------------------------------------------------------------------
>
> _______________________________________________
> Rock-dev mailing list
> [email protected]
> http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev
_______________________________________________
Rock-dev mailing list
[email protected]
http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev

Reply via email to