Use CGAL_CFG_DEDUCABLE_CONTEXT_BUG to partially (but most probably sufficiently)

work around SunCC bug.
This commit is contained in:
Sylvain Pion 2007-03-30 17:18:22 +00:00
parent e52bf7fec5
commit bda89ba1d6
1 changed files with 7 additions and 0 deletions

View File

@ -41,10 +41,17 @@ struct Type_mapper
// Then we specialize for all kernel objects.
#ifndef CGAL_CFG_DEDUCABLE_CONTEXT_BUG
#define CGAL_Kernel_obj(X) \
template < typename K1, typename K2 > \
struct Type_mapper < typename K1::X, K1, K2 > \
{ typedef typename K2::X type; };
#else
#define CGAL_Kernel_obj(X) \
template < typename K1, typename K2 > \
struct Type_mapper < CGAL::X<K1>, K1, K2 > \
{ typedef typename K2::X type; };
#endif
#include <CGAL/Kernel/interface_macros.h>