⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cxx_have_friend_in_template_declaration.m4

📁 FreeFEM is an implementation of the GFEM language dedicated to the finite element method. It provid
💻 M4
字号:
dnl ----------------------------------------------------------------------dnldnl CXX_HAVE_FRIEND_IN_TEMPLATE_DECLARATIONdnl ---------------------------------------------dnldnl If the C++ compiler support explicit template instantiation, dnl                         define `HAVE_FRIEND_IN_TEMPLATE_DECLARATION'.dnldnl This program is free software; you can redistribute it and/or modifydnl  it under the terms of the GNU General Public License as published bydnl  the Free Software Foundation; either version 2 of the License, ordnl  (at your option) any later version.dnl  dnl  This program is distributed in the hope that it will be useful,dnl  but WITHOUT ANY WARRANTY; without even the implied warranty ofdnl  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See thednl  GNU General Public License for more details.dnldnl  You should have received a copy of the GNU General Public Licensednl  along with this program; if not, write to the Free Softwarednl  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.AC_DEFUN(CXX_HAVE_FRIEND_IN_TEMPLATE_DECLARATION,[AC_REQUIRE([AC_PROG_CXX])AC_MSG_CHECKING(whether the C++ compiler (${CXX}) supports friend<> in template)AC_CACHE_VAL(ddec_cv_have_friend_in_template_declaration,[AC_LANG_SAVEAC_LANG_CPLUSPLUSAC_TRY_COMPILE([template<class T> class A { public: A();};template<class T> operator==(A<T> const& a, A<T> const& b);template<class T> class B { public: B();    friend int operator== <>(A<T> const& a, A<T> const& b);};template B<int>;],[return 0;],ddec_cv_have_friend_in_template_declaration=yes,ddec_cv_have_friend_in_template_declaration=no)AC_LANG_RESTORE])AC_MSG_RESULT($ddec_cv_have_friend_in_template_declaration)if test "$ddec_cv_have_friend_in_template_declaration" = yes; thenAC_DEFINE(HAVE_FRIEND_IN_TEMPLATE_DECLARATION)fi])dnl

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -