[libsigc++2/variadic_bind4] 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/variadic_bind4] Remove unused SIGC_CXX_SELF_REFERENCE_IN_MEMBER_INITIALIZATION() configure check.
- Date: Thu, 3 Mar 2016 09:41:31 +0000 (UTC)
commit ab35dff2c31eb3620a6e604e52934d5faa726b48
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.
build/cxx.m4 | 26 --------------------------
configure.ac | 1 -
sigc++/type_traits.h | 2 +-
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 {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]