|
Boost : |
From: Christian Holmquist (c.holmquist_at_[hidden])
Date: 2007-05-24 05:17:55
> Wow, I love that header!
boost/functional/detail/container_fwd.hpp doesn't handle hash_set/map
though.
STL shipped with VC 7.1 and 8.0 put these containers into namespace stdext,
and they have one less template parameter as well.
The following forwarding works for VC with and without stlport
#if defined(_STDEXT) && !defined(__SGI_STL_PORT) &&
!defined(_STLPORT_VERSION)
#define USE_STDEXT
namespace stdext
{
template<class Key, class HashCompare, class Allocator>
class hash_set;
template<class Key, class HashCompare, class Allocator>
class hash_multiset;
template<class Key, class T, class HashCompare, class Allocator>
class hash_map;
template<class Key, class T, class HashCompare, class Allocator>
class hash_multimap;
}
#else
namespace std
{
template<class Key, class Hash, class Compare, class Allocator>
class hash_set;
template<class Key, class Hash, class Compare, class Allocator>
class hash_multiset;
template<class Key, class T, class Hash, class Compare, class
Allocator>
class hash_map;
template<class Key, class T, class Hash, class Compare, class
Allocator>
class hash_multimap;
}
#endif
Do you know how hash_map/set look on other platforms? Do they differ from
stlport?
Regards,
On 24/05/07, shunsuke <pstade.mb_at_[hidden]> wrote:
>
> Christian Holmquist wrote:
> > <boost/lambda/detail/operator_return_type_traits.hpp>has some forward
> > declarations.
> > <libstdc++ debug mode would be trouble?
> >
> > I found more forward declarations in
> > boost/functional/detail/container_fwd.hpp, and this one seems to get the
> job
> > done.
>
> Wow, I love that header!
>
>
> Well, container_traits is the former name of Boost.Range.
>
>
> Regards,
>
> --
> Shunsuke Sogame
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk