[libsigc++2] Remove unused SIGC_CXX_SELF_REFERENCE_IN_MEMBER_INITIALIZATION() configure check.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsigc++2] Remove unused SIGC_CXX_SELF_REFERENCE_IN_MEMBER_INITIALIZATION() configure check.
- Date: Thu, 3 Mar 2016 11:45:05 +0000 (UTC)
commit 473903c7aaad54d07d3c2d33166fd07af2f3efac
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Mar 3 10:21:15 2016 +0100
Remove unused SIGC_CXX_SELF_REFERENCE_IN_MEMBER_INITIALIZATION() configure check.
Bug #762065 (Kjell Ahlstedt)
build/cxx.m4 | 26 --------------------------
configure.ac | 1 -
docs/reference/Doxyfile.in | 1 -
sigc++/type_traits.h | 2 +-
sigc++config.h.in | 4 ----
5 files changed, 1 insertions(+), 33 deletions(-)
---
diff --git a/build/cxx.m4 b/build/cxx.m4
index 201a561..d66d6d7 100644
--- a/build/cxx.m4
+++ b/build/cxx.m4
@@ -92,32 +92,6 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
AC_MSG_RESULT([$sigcm_cxx_msvc_template_specialization_operator_overload])
])
-
-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 fe859e2..5fb4ec6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -52,7 +52,6 @@ MM_ARG_WITH_TAGFILE_DOC([libstdc++.tag], [mm-common-libstdc++])
AC_LANG([C++])
SIGC_CXX_GCC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD
SIGC_CXX_MSVC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD
-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/docs/reference/Doxyfile.in b/docs/reference/Doxyfile.in
index 08a8936..64de25b 100644
--- a/docs/reference/Doxyfile.in
+++ b/docs/reference/Doxyfile.in
@@ -282,7 +282,6 @@ PREDEFINED = __cplusplus \
SIGC_GCC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD \
SIGC_HAVE_NAMESPACE_STD \
SIGC_MSVC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD \
- SIGC_SELF_REFERENCE_IN_MEMBER_INITIALIZATION \
SIGC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD \
"SIGC_USING_STD(Symbol)="
EXPAND_AS_DEFINED = SIGC_WORKAROUND_OPERATOR_PARENTHESES \
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 {
diff --git a/sigc++config.h.in b/sigc++config.h.in
index a8f5ac8..1576e03 100644
--- a/sigc++config.h.in
+++ b/sigc++config.h.in
@@ -70,10 +70,6 @@
calling operator() template methods omitting the template keyword. */
# undef SIGC_MSVC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD
-/* does the C++ compiler allow usage of member function in initialization of
- static member field. */
-# undef SIGC_SELF_REFERENCE_IN_MEMBER_INITIALIZATION
-
/* does the C++ preprocessor support pragma push_macro() and pop_macro(). */
# undef SIGC_PRAGMA_PUSH_POP_MACRO
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]