PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.cplus > Re: Boost Logging Lib, v2 - added documentation
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Re: Boost Logging Lib, v2 - added documentation

Réponse
 
LinkBack Outils de la discussion
Vieux 16/10/2007, 13h45   #1 (permalink)
shunsuke
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Boost Logging Lib, v2 - added documentation

On Oct 11, 3:06 pm, jtorjo2...@yahoo.com wrote:
> Hi all,
>
> I've added documentation for the Logging Lib v2 :http://torjo.com/log2/(Logging homepage)http://torjo.com/log2/doc/html/(documentation)


FWIW, I made a toy logging library, which applies "type erasure" to
streams.
If interested, see: http://p-stade.sourceforge.net/napkin/index.html


Regards,

--
Shunsuke Sogame


[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]

  Réponse avec citation
Vieux 17/10/2007, 01h11   #2 (permalink)
Neal E. Coombes
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Boost Logging Lib, v2 - added documentation

On Oct 16, 7:45 am, shunsuke <pstade...@gmail.com> wrote:
>
> FWIW, I made a toy logging library, which applies "type erasure" to
> streams.
> If interested, see:http://p-stade.sourceforge.net/napkin/index.html


It's cute. I like most of it. It wouldn't likely meet our
performance requirements but is dead simple. The only thing I would
change is the PSTADE_IF_DEBUG and PSTADE_UNPARENTHESIZE which are
completely unnecessary. At least the unparenthesize one is. You
could define PSTADE_IF_DEBUG as 'if(true)' and 'if(false)' and then
require the user uses {} instead of (), or you could just have the
user type 'if(PSTADE_DEBUG)' themselves. Either way just about every
compiler I know of will completely remove the if when the conditional
is a constant literal.

Neal


--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]

  Réponse avec citation
Vieux 19/10/2007, 04h02   #3 (permalink)
shunsuke
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Boost Logging Lib, v2 - added documentation

On Oct 17, 9:11 am, "Neal E. Coombes" <neal.coom...@gmail.com> wrote:
> It's cute. I like most of it. It wouldn't likely meet our
> performance requirements but is dead simple. The only thing I would
> change is the PSTADE_IF_DEBUG and PSTADE_UNPARENTHESIZE which are
> completely unnecessary. At least the unparenthesize one is. You
> could define PSTADE_IF_DEBUG as 'if(true)' and 'if(false)' and then
> require the user uses {} instead of (), or you could just have the
> user type 'if(PSTADE_DEBUG)' themselves.


An if-statememnt introduces a scope.
Anyway I tend to prefer #if to IF_DEBUG these days.

> Either way just about every
> compiler I know of will completely remove the if when the conditional
> is a constant literal.


Thanks for the good news. I didn't know certainly that. :-)
I will update my debugging macros, which will be something like:

DEBUG_EXPR(std::cout) << 1 << 2 << 3;
DEBUG_BLOCK { std::cout << 1 << 2 << 3; }


Regards,

--
Shunsuke Sogame


--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 03h43.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09189 seconds with 11 queries