Boost logo

Boost Users :

Subject: Re: [Boost-users] [tr1/config] portably including unordered_<X>
From: John Maddock (boost.regex_at_[hidden])
Date: 2011-02-28 13:05:14


> It appears that <boost/tr1/unordered_X.hpp> includes the native
> <unordered_X> when Boost.config says it's able.
>
> So if one were writing a portable library that uses boost (or bug-fixing
> an existing boost component), would including
> <boost/tr1/unordered_X.hpp> be the way to bring it in, or should one
> look at BOOST_HAS_TR1_UNORDERED_SET and make a decision that way?
>
> There's no mechanism analogous to BOOST_HAS_HASH / BOOST_HASH_<X>_HEADER
> that has to be navigated, right?

No, so either include boost/tr1/unordered_*.hpp if you want to use the tr1::
versions (native when available), or else include the boost unordered
containers directly if you want to use the boost:: versions.

HTH, John.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net