summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2016-03-03 10:21:15 +0100
committerMurray Cumming <murrayc@murrayc.com>2016-03-03 10:21:15 +0100
commitab35dff2c31eb3620a6e604e52934d5faa726b48 (patch)
treebbbf9003e17b5bb563e925e87101a71e158094a0
parent01d55d97109cc444e52e74659244726681dd8835 (diff)
downloadsigc++-ab35dff2c31eb3620a6e604e52934d5faa726b48.tar.gz
Remove unused SIGC_CXX_SELF_REFERENCE_IN_MEMBER_INITIALIZATION() configure check.
-rw-r--r--build/cxx.m426
-rw-r--r--configure.ac1
-rw-r--r--sigc++/type_traits.h2
3 files changed, 1 insertions, 28 deletions
diff --git a/build/cxx.m4 b/build/cxx.m4
index e299ab8..f1f80ee 100644
--- a/build/cxx.m4
+++ b/build/cxx.m4
@@ -1,29 +1,3 @@
-
-AC_DEFUN([SIGC_CXX_SELF_REFERENCE_IN_MEMBER_INITIALIZATION], [
-AC_MSG_CHECKING([if C++ compiler allows usage of member function in initialization of static member field.])
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
-[[
- struct test
- {
- static char test_function();
-
- // Doesn't work with e.g. GCC 3.2. However, if test_function()
- // is wrapped in a nested structure, it works just fine.
- static const bool test_value
- = (sizeof(test_function()) == sizeof(char));
- };
-]],
-[[]])],
-[
- sigcm_cxx_self_reference_in_member_initialization=yes
- AC_DEFINE([SIGC_SELF_REFERENCE_IN_MEMBER_INITIALIZATION],[1],
- [does the C++ compiler allow usage of member function in initialization of static member field.])
-],[
- sigcm_cxx_self_reference_in_member_initialization=no
-])
-AC_MSG_RESULT([$sigcm_cxx_self_reference_in_member_initialization])
-])
-
dnl
dnl SIGC_CXX_PRAGMA_PUSH_POP_MACRO
dnl
diff --git a/configure.ac b/configure.ac
index a3d135b..1df49ba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -50,7 +50,6 @@ MM_ARG_ENABLE_DOCUMENTATION
MM_ARG_WITH_TAGFILE_DOC([libstdc++.tag], [mm-common-libstdc++])
AC_LANG([C++])
-SIGC_CXX_SELF_REFERENCE_IN_MEMBER_INITIALIZATION
SIGC_CXX_PRAGMA_PUSH_POP_MACRO
SIGC_CXX_HAS_NAMESPACE_STD
SIGC_CXX_HAS_SUN_REVERSE_ITERATOR
diff --git a/sigc++/type_traits.h b/sigc++/type_traits.h
index a4989f0..41b2a41 100644
--- a/sigc++/type_traits.h
+++ b/sigc++/type_traits.h
@@ -19,7 +19,7 @@
#ifndef _SIGC_TYPE_TRAIT_H_
#define _SIGC_TYPE_TRAIT_H_
-#include <sigc++config.h> //To get SIGC_SELF_REFERENCE_IN_MEMBER_INITIALIZATION
+#include <sigc++config.h>
namespace sigc {