Subject: [Boost-bugs] [Boost C++ Libraries] #3413: Error with forward declaration of stdext::hash_map
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-09-07 12:25:22
#3413: Error with forward declaration of stdext::hash_map
-------------------------------------------------------+--------------------
Reporter: Piotr Wyderski <piotr.wyderski@â¦> | Owner:
Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: None
Version: Boost 1.40.0 | Severity: Problem
Keywords: |
-------------------------------------------------------+--------------------
Below is a thread which describes exactly the same error I've encountered
in Boost 1.40. There also is a patch to fix this issue
http://www.nabble.com/-Spirit2--Error-with-forward-declaration-of-
stdext::hash_map.-td21818384.html
The correct code should be for is_std_hash_map.hpp:
namespace boost
{
template<class T>
struct is_std_hash_map
: boost::mpl::false_
{};
template<
class Kty
, class Ty
, class Tr
, class Alloc
>
struct is_std_hash_map< ::stdext::hash_map<Kty,Ty,Tr,Alloc> >
: boost::mpl::true_
{};
template<class T>
struct is_std_hash_multimap
: boost::mpl::false_
{};
template<
class Kty
, class Ty
, class Tr
, class Alloc
>
struct is_std_hash_multimap< ::stdext::hash_multimap<Kty,Ty,Tr,Alloc>
>
: boost::mpl::true_
{};
}
The correct code for std_hash_map_fwd.hpp:
namespace stdext
{
template<
class Kty
, class Ty
, class Tr
, class Alloc
>
class hash_map;
template<
class Kty
, class Ty
, class Tr
, class Alloc
>
class hash_multimap;
}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3413> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC