Skip to content
Snippets Groups Projects
Commit 0dca1d24 authored by Christian Engwer's avatar Christian Engwer
Browse files

icc7 does not support template class marked as deprecated... add this to the configure test

[[Imported from SVN: r5007]]
parent 06b4561d
No related branches found
No related tags found
No related merge requests found
......@@ -4,8 +4,15 @@
AC_DEFUN([DUNE_CHECKDEPRECATED],[
AC_MSG_CHECKING([for __attribute__((deprecated))])
AC_TRY_COMPILE([int foo() __attribute__((deprecated));
int foo() {};],[],
AC_TRY_COMPILE([#define DEP __attribute__((deprecated))
class bar { bar() DEP; };
class peng { } DEP;
template <class T>
class t_bar { t_bar() DEP; };
template <class T>
class t_peng { t_peng() {}; } DEP;
void foo() DEP;
void foo() {};],[],
[DUNE_DEPRECATED="__attribute__((deprecated))"
AC_MSG_RESULT(yes)],
[DUNE_DEPRECATED=""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment