1
dnl Available from the GNU Autoconf Macro Archive at:
2
dnl http://www.gnu.org/software/ac-archive/htmldoc/ac_cxx_template_scoped_argument_matching.html
4
AC_DEFUN([AC_CXX_TEMPLATE_SCOPED_ARGUMENT_MATCHING],
5
[AC_CACHE_CHECK(whether the compiler supports function matching with argument types which are template scope-qualified,
6
ac_cv_cxx_template_scoped_argument_matching,
7
[AC_REQUIRE([AC_CXX_TYPENAME])
14
template<class X> class A { public : typedef X W; };
15
template<class Y> class B {};
16
template<class Y> void operator+(B<Y> d1, typename Y::W d2) {}
17
],[B<A<float> > z; z + 0.5f; return 0;],
18
ac_cv_cxx_template_scoped_argument_matching=yes, ac_cv_cxx_template_scoped_argument_matching=no)
21
if test "$ac_cv_cxx_template_scoped_argument_matching" = yes; then
22
AC_DEFINE(HAVE_TEMPLATE_SCOPED_ARGUMENT_MATCHING,,
23
[define if the compiler supports function matching with argument types which are template scope-qualified])