Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-10-29 15:41:50


> Peter Dimov wrote:
>> Eric Niebler:
>>
>>> I think the better solution is the one Arkadiy suggested ... that there
>>> is a dedicated place for such registrations so interested parties can
>>> add them if they need them.
>>
>> The various registrations are indeed the responsibility of the library
>> authors but they will probably not happen unless it is possible to make
>> said
>> registrations without including a foreign header and in a risk-free
>> manner.
>
> Peter, I'm not exactly sure what you're arguing for here. Can you be
> more specific?

Hm.

I think I'm arguing for a documented registration interface that looks like
this:

namespace boost
{

namespace type_of
{

template< class V, class T > struct encode_type;

template<> struct encode_type< whatever-is-required >
{
    whatever-is-required;
};

} // namespace type_of

} // namespace boost

I've no idea how practical is that.


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