Boost logo

Boost :

Subject: Re: [boost] [Serialization] this seems wrong
From: Kenny Riddile (kfriddile_at_[hidden])
Date: 2008-11-26 12:20:02


Brandon Kohn wrote:
> --------------------------------------------------
> From: "Kenny Riddile" <kfriddile_at_[hidden]>
> Sent: Wednesday, November 26, 2008 11:33 AM
> To: <boost_at_[hidden]>
> Subject: Re: [boost] [Serialization] this seems wrong
>
>> Robert Ramey wrote:
>>> Kenny Riddile wrote:
>>>> Am I missing something?
>>>
>>> This is done in order to create unique variable name for static
>>> variables which implement export.
>>>
>>>> Is this fixed in 1.37
>>>
>>> no.
>>>
>>> We don't know of any other way to do this. If you do, feel free
>>> to implement it.
>>>
>>> Robert Ramey _______________________________________________
>>> Unsubscribe & other changes:
>>> http://lists.boost.org/mailman/listinfo.cgi/boost
>>>
>>
>> Thanks for the quick response and the great library. One solution
>> that comes to mind is to use a combination of file name and line
>> number instead of just the line number via both the __FILE__ and
>> __LINE__ preprocessor directives. Are you aware of any reason why
>> that wouldn't work?
>
> Hi :),
>
> This is the first thing I thought as well.. I think there might be
> trouble though if a filename is not constrained to be a valid identifier
> name.
>
> Brandon
>>
>> _______________________________________________
>> Unsubscribe & other changes:
>> http://lists.boost.org/mailman/listinfo.cgi/boost
>>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>

Yes, I had that thought too, especially since I believe __FILE__ gives
the entire path of the file. Still, I didn't know if there was some
magical way to extract the desired section of the __FILE__ output using
boost preprocessor or something. I've never used that library before.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk