Remove feature test for HAVE_EXPLICIT
This commit is contained in:
parent
8cfc74491a
commit
32666e8d4f
7 changed files with 1 additions and 142 deletions
47
acinclude.m4
47
acinclude.m4
|
|
@ -208,53 +208,6 @@ AC_DEFUN([WX_CPP_NEW_HEADERS],
|
|||
AC_LANG_RESTORE
|
||||
])
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl WX_CPP_EXPLICIT checks whether the C++ compiler support the explicit
|
||||
dnl keyword and defines HAVE_EXPLICIT if this is the case
|
||||
dnl ---------------------------------------------------------------------------
|
||||
|
||||
AC_DEFUN([WX_CPP_EXPLICIT],
|
||||
[
|
||||
AC_CACHE_CHECK([if C++ compiler supports the explicit keyword],
|
||||
wx_cv_explicit,
|
||||
[
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
|
||||
dnl do the test in 2 steps: first check that the compiler knows about the
|
||||
dnl explicit keyword at all and then verify that it really honours it
|
||||
AC_TRY_COMPILE(
|
||||
[
|
||||
class Foo { public: explicit Foo(int) {} };
|
||||
],
|
||||
[
|
||||
return 0;
|
||||
],
|
||||
[
|
||||
AC_TRY_COMPILE(
|
||||
[
|
||||
class Foo { public: explicit Foo(int) {} };
|
||||
static void TakeFoo(const Foo& foo) { }
|
||||
],
|
||||
[
|
||||
TakeFoo(17);
|
||||
return 0;
|
||||
],
|
||||
wx_cv_explicit=no,
|
||||
wx_cv_explicit=yes
|
||||
)
|
||||
],
|
||||
wx_cv_explicit=no
|
||||
)
|
||||
|
||||
AC_LANG_RESTORE
|
||||
])
|
||||
|
||||
if test "$wx_cv_explicit" = "yes"; then
|
||||
AC_DEFINE(HAVE_EXPLICIT)
|
||||
fi
|
||||
])
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl WX_CHECK_FUNCS(FUNCTIONS...,
|
||||
dnl [ACTION-IF-FOUND],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue