12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- //////////////////////////////////////////////////////////////////////////
- // This section is to sort out whether hash types or unordered types
- // are available. This depends on whether stdlib or libc++ is being used
- // and also whether C++11 or C++03 is being used.
- //////////////////////////////////////////////////////////////////////////
- // The idea is to set up the configuration without including the actual
- // headers unless that is unavoidable.
- //
- // The client code should contain the following to include headers
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- // The client code can then chose the implementation provided.
- // See the example in test/stl/querying_find2.cpp
- //
- //////////////////////////////////////////////////////////////////////////
- //
- // There is no specific thing in Boost Config for libc++
- // This may not be true for some very old version of libc++
- // Current libc++ supports unordered_set and unordered_map without C++11.
- && (defined (BOOST_NO_CXX11_HDR_UNORDERED_MAP) || \
- defined (BOOST_NO_CXX11_HDR_UNORDERED_SET) ) )
- // This is to sort out case of Clang when using stdlib from gcc
- // as Clang thinks it is gcc 4.2.1
- // This prevents the failure to include a header with a warning.
- // This is either libc++ or C++11 or later
|