From 3016548bad863e8970c2416396e053f70a524a81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Fri, 21 Oct 2016 17:52:44 +0200 Subject: [PATCH] Fix the specialization of Boost's assoc_pmap using CGAL::Unique_hash_map The default template parameters of the hash map were taken. --- Hash_map/include/CGAL/Unique_hash_map.h | 31 +++++++++++++------------ 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/Hash_map/include/CGAL/Unique_hash_map.h b/Hash_map/include/CGAL/Unique_hash_map.h index 82d749be65c..8a7ab5ad799 100644 --- a/Hash_map/include/CGAL/Unique_hash_map.h +++ b/Hash_map/include/CGAL/Unique_hash_map.h @@ -129,10 +129,13 @@ namespace boost { struct lvalue_property_map_tag; - template - class associative_property_map > + template + class associative_property_map > { - typedef CGAL::Unique_hash_map C; + typedef CGAL::Unique_hash_map C; + public: typedef KeyType key_type; typedef ValueType value_type; @@ -146,16 +149,14 @@ namespace boost { friend const value_type& - get(const associative_property_map >& uhm, - const key_type& key) + get(const associative_property_map& uhm, const key_type& key) { return uhm[key]; } friend void - put(associative_property_map >& uhm, - const key_type& key, const value_type& val) + put(associative_property_map& uhm, const key_type& key, const value_type& val) { uhm[key] = val; } @@ -164,18 +165,18 @@ namespace boost { C* m_c; }; - - template - associative_property_map > - make_assoc_property_map(CGAL::Unique_hash_map & c) + template + associative_property_map > + make_assoc_property_map(CGAL::Unique_hash_map& c) { - return associative_property_map >(c); + return associative_property_map >(c); } - } - - #endif // CGAL_UNIQUE_HASH_MAP_H // EOF