|
Boost : |
Subject: Re: [boost] [config] request for BOOST_NO_FWD_STD_DECLARATION
From: Stewart, Robert (Robert.Stewart_at_[hidden])
Date: 2011-02-16 09:41:40
Christian Holmquist wrote:
>
> I find forwarding of std::containers very useful, and have
> needed to write my own in the past (of course, nonportable).
> There's are a big overlap in different boost libraries that
> does the same, and for users such as myself.
>
> Can't this be taken one step further, and introduce something
> like boost/details/stdfwd.hpp, or maybe boost/stdfwd.hpp? In
> the case where forwarding is not possible, stdfwd.hpp would
> have to include all std::containers
In the fallback case, you'd force inclusion of <map>, <multimap>, <set>, etc. for some context that, otherwise, would only have included, say, <vector>. That's not a good tradeoff. Instead of stdfwd.hpp, it'll have to be map_fwd.hpp, multimap_fwd.hpp, and so on.
_____
Rob Stewart robert.stewart_at_[hidden]
Software Engineer, Core Software using std::disclaimer;
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