Skip to content

Commit 473903c

Browse files
committed
Remove unused SIGC_CXX_SELF_REFERENCE_IN_MEMBER_INITIALIZATION() configure check.
Bug #762065 (Kjell Ahlstedt)
1 parent 1d5c908 commit 473903c

File tree

5 files changed

+1
-33
lines changed

5 files changed

+1
-33
lines changed

build/cxx.m4

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -92,32 +92,6 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
9292
AC_MSG_RESULT([$sigcm_cxx_msvc_template_specialization_operator_overload])
9393
])
9494

95-
96-
AC_DEFUN([SIGC_CXX_SELF_REFERENCE_IN_MEMBER_INITIALIZATION], [
97-
AC_MSG_CHECKING([if C++ compiler allows usage of member function in initialization of static member field.])
98-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
99-
[[
100-
struct test
101-
{
102-
static char test_function();
103-
104-
// Doesn't work with e.g. GCC 3.2. However, if test_function()
105-
// is wrapped in a nested structure, it works just fine.
106-
static const bool test_value
107-
= (sizeof(test_function()) == sizeof(char));
108-
};
109-
]],
110-
[[]])],
111-
[
112-
sigcm_cxx_self_reference_in_member_initialization=yes
113-
AC_DEFINE([SIGC_SELF_REFERENCE_IN_MEMBER_INITIALIZATION],[1],
114-
[does the C++ compiler allow usage of member function in initialization of static member field.])
115-
],[
116-
sigcm_cxx_self_reference_in_member_initialization=no
117-
])
118-
AC_MSG_RESULT([$sigcm_cxx_self_reference_in_member_initialization])
119-
])
120-
12195
dnl
12296
dnl SIGC_CXX_PRAGMA_PUSH_POP_MACRO
12397
dnl

configure.ac

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ MM_ARG_WITH_TAGFILE_DOC([libstdc++.tag], [mm-common-libstdc++])
5252
AC_LANG([C++])
5353
SIGC_CXX_GCC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD
5454
SIGC_CXX_MSVC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD
55-
SIGC_CXX_SELF_REFERENCE_IN_MEMBER_INITIALIZATION
5655
SIGC_CXX_PRAGMA_PUSH_POP_MACRO
5756
SIGC_CXX_HAS_NAMESPACE_STD
5857
SIGC_CXX_HAS_SUN_REVERSE_ITERATOR

docs/reference/Doxyfile.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,6 @@ PREDEFINED = __cplusplus \
282282
SIGC_GCC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD \
283283
SIGC_HAVE_NAMESPACE_STD \
284284
SIGC_MSVC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD \
285-
SIGC_SELF_REFERENCE_IN_MEMBER_INITIALIZATION \
286285
SIGC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD \
287286
"SIGC_USING_STD(Symbol)="
288287
EXPAND_AS_DEFINED = SIGC_WORKAROUND_OPERATOR_PARENTHESES \

sigc++/type_traits.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#ifndef _SIGC_TYPE_TRAIT_H_
2020
#define _SIGC_TYPE_TRAIT_H_
2121

22-
#include <sigc++config.h> //To get SIGC_SELF_REFERENCE_IN_MEMBER_INITIALIZATION
22+
#include <sigc++config.h>
2323

2424

2525
namespace sigc {

sigc++config.h.in

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@
7070
calling operator() template methods omitting the template keyword. */
7171
# undef SIGC_MSVC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD
7272

73-
/* does the C++ compiler allow usage of member function in initialization of
74-
static member field. */
75-
# undef SIGC_SELF_REFERENCE_IN_MEMBER_INITIALIZATION
76-
7773
/* does the C++ preprocessor support pragma push_macro() and pop_macro(). */
7874
# undef SIGC_PRAGMA_PUSH_POP_MACRO
7975

0 commit comments

Comments
 (0)