QPID_MSG has lots of uses with identical args. The file/line is the only way to 
tell them apart.

Couldn't you just define another macro that's just like QPID_MSG but without 
the file/line and use that where you need it leaving the rest alone?

----- Original Message -----
> From: "Alan Conway" <[email protected]>
> To: "dev" <[email protected]>
> Sent: Wednesday, January 29, 2014 11:45:33 AM
> Subject: [C++] Getting rid of file:line in QPID_MSG
> 
> There's a convenience macro QPID_MSG in qpid/cpp/src/qpid/Msg.h that is
> used to format exception messages all over the place.
> 
> The current implementation includes the "filename:line" source location
> where the macro is used.
> 
> I propose to take the filename:line out. It is not necessary for
> developers (you can  find the source of a message by grepping for the
> message text) and it adds a lot of useless non-information to messages
> that are read by users. It was my misguided self who put it in there
> long ago, if anyone thinks it is really useful please shout now and
> we'll argue about it, else I'll excise it. Silence = consent.
> 
> Cheers,
> Alan.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to