Add test to check whether partial template specialization works. r=scc

This commit is contained in:
waterson%netscape.com 2000-04-27 05:52:26 +00:00
Родитель 67865c1d1d
Коммит bcef67b51f
1 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -2362,6 +2362,20 @@ if test "$ac_cv_cpp_modern_specialize_template_syntax" = yes ; then
AC_DEFINE(HAVE_CPP_MODERN_SPECIALIZE_TEMPLATE_SYNTAX)
fi
dnl Some compilers support only full specialization, and some don't.
AC_CACHE_CHECK(whether partial template specialization works,
ac_cv_cpp_partial_specialization,
[AC_TRY_COMPILE(template <class T> class Foo {};
template <class T> class Foo<T*> {};,
return 0;,
ac_cv_cpp_partial_specialization=yes,
ac_cv_cpp_partial_specialization=no)])
if test "$ac_cv_cpp_partial_specialization" = yes ; then
AC_DEFINE(HAVE_CPP_PARTIAL_SPECIALIZATION)
fi
dnl
dnl We dont do exceptions on unix. The only reason this used to be here
dnl is that mozilla/xpcom/tests/TestCOMPtr.cpp has a test which uses