Mercurial > jwe > octave
diff m4/acinclude.m4 @ 21149:7962dbca527f
eliminate obsolete CXX_NEW_FRIEND_TEMPLATE_DECL macro
* acinclude.m4 (OCTAVE_CXX_NEW_FRIEND_TEMPLATE_DECL):
Delete macro definition.
* configure.ac: Don't use it.
* filter.cc, eigs-base.cc, sparse-dmsolve.cc:
Eliminate use of CXX_NEW_FRIEND_TEMPLATE_DECL macro since this feature
should be present in all modern C++ compilers.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 29 Jan 2016 12:23:09 -0500 |
parents | e06e600f396a |
children | f090661930ba |
line wrap: on
line diff
--- a/m4/acinclude.m4 Fri Jan 29 06:24:34 2016 +0100 +++ b/m4/acinclude.m4 Fri Jan 29 12:23:09 2016 -0500 @@ -1460,44 +1460,6 @@ fi ]) dnl -dnl Check if C++ compiler needs the new friend template declaration -dnl syntax. -dnl -AC_DEFUN([OCTAVE_CXX_NEW_FRIEND_TEMPLATE_DECL], [ - AC_REQUIRE([AC_PROG_CXX]) - AC_MSG_CHECKING([for C++ support for new friend template declaration]) - AC_CACHE_VAL([octave_cv_cxx_new_friend_template_decl], - [AC_LANG_PUSH(C++) - rm -f conftest.h - cat > conftest.h <<EOB - struct A { - friend int operator== (const A&, const A&); - A (int) { } - }; - - template <class T> int - operator== (const T&, const T&) - { - return 0; - } -EOB - AC_LINK_IFELSE([AC_LANG_PROGRAM([[ - #include "conftest.h" - ]], [[ - A a (1); - return a == A(1); - ]])], - octave_cv_cxx_new_friend_template_decl=no, - octave_cv_cxx_new_friend_template_decl=yes) - AC_LANG_POP(C++) - ]) - AC_MSG_RESULT([$octave_cv_cxx_new_friend_template_decl]) - if test $octave_cv_cxx_new_friend_template_decl = yes; then - AC_DEFINE(CXX_NEW_FRIEND_TEMPLATE_DECL, 1, - [Define to 1 if your compiler supports `<>' stuff for template friends.]) - fi -]) -dnl dnl Check if the compiler supports placement delete. dnl AC_DEFUN([OCTAVE_CXX_PLACEMENT_DELETE], [