Boost logo

Boost :

Subject: Re: [boost] [algorithm] aesthetic question about cxx11
From: Stewart, Robert (Robert.Stewart_at_[hidden])
Date: 2012-02-27 10:16:31


Marshall Clow wrote:
> On Feb 26, 2012, at 10:50 AM, lcaminiti wrote:
>
> > I have an aesthetic question. Boost.Algorithm puts C++11
> > algorithms like all_of into a directory
> > boost/algorithm/cxx11. Would the directory name
> > boost/algorithm/cpp11 be preferred?
> >
> > I think for file names .cpp and .hpp are Boost choice over
> > .cxx and .hxx. But for directory names instead cxx11 is Boost
> > choice over cpp11? Similarly, shall macros that refer to
> > C++11 be named BOOST_..._CPP11_... or BOOST_..._CXX11_...?

> Just to let you know, the directory boost/algorithm/cxx11 has
> not been a part of any boost release yet (it will be part
> of1.50), so changing it should not break any existing code.
>
> As to using cxx11 vs cpp11, I don't really have a preference.

As Lorenzo notes, the suffixes suggest that the directory names should use "cpp", too, but there is a difference. In "cxx11", the "cxx" is in reference to a standard version, rather than to the language itself, so a distinction might be appropriate.

I, too, don't really have a preference. However, the directories and corresponding macros should use p/P or x/X consistently.

_____
Rob Stewart robert.stewart_at_[hidden]
Software Engineer using std::disclaimer;
Dev Tools & Components
Susquehanna International Group, LLP http://www.sig.com

________________________________

IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.


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