Boost logo

Boost :

Subject: Re: [boost] [review] string convert
From: Vladimir Batov (vbatov_at_[hidden])
Date: 2011-05-05 19:30:11


> Vicente BOTET <vicente.botet <at> wanadoo.fr> writes:
>
>> Additional note. While you are on the interface, it probably needs to be kept
>> in mind that the current (as I understand it anyway) Boost policy is to avoid
>> introducing content directly in the boost namespace.
>
> Would you apply this to your Boost libraries?

You are probably referring to my old 'convert' proposal. Yes, all was wrapped
inside 'convert' which among other things worked as a namespace. Indeed it was
not a namespace. However, it was implemented *as* a namespace. Exactly how
namespaces were implemented via struct long time ago when compilers did not
support namespaces. Namely,

    namespace convert
    {
        void from();
    }

can be achieved with 'struct':

    struct convert
    {
        static void from();
    };

In fact, for various reasons I still often prefer the latter. Your taste might
differ.

V.


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