зеркало из https://github.com/mozilla/pjs.git
Add test to check whether partial template specialization works. r=scc
This commit is contained in:
Родитель
bb43b6e2a2
Коммит
e110cd0747
14
configure.in
14
configure.in
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче