Skip to content

Commit 801bb2c

Browse files
committed
Remove now-unnecessary SIGC_CXX_HAS_NAMESPACE_STD() configure check.
Bug #762065 (Kjell Ahlstedt)
1 parent 473903c commit 801bb2c

File tree

4 files changed

+1
-58
lines changed

4 files changed

+1
-58
lines changed

build/cxx_std.m4

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,17 @@
1-
cv_cxx_has_namespace_std
2-
## SIGC_CXX_HAS_NAMESPACE_STD()
3-
##
4-
## Test whether libstdc++ declares namespace std. For safety,
5-
## also check whether several randomly selected STL symbols
6-
## are available in namespace std.
7-
##
8-
## On success, #define SIGC_HAVE_NAMESPACE_STD to 1.
9-
##
10-
AC_DEFUN([SIGC_CXX_HAS_NAMESPACE_STD],
11-
[
12-
AC_CACHE_CHECK(
13-
[whether C++ library symbols are declared in namespace std],
14-
[sigc_cv_cxx_has_namespace_std],
15-
[
16-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
17-
[[
18-
#include <algorithm>
19-
#include <iterator>
20-
#include <iostream>
21-
#include <string>
22-
]],[[
23-
using std::min;
24-
using std::find;
25-
using std::copy;
26-
using std::bidirectional_iterator_tag;
27-
using std::string;
28-
using std::istream;
29-
using std::cout;
30-
]])],
31-
[sigc_cv_cxx_has_namespace_std='yes'],
32-
[sigc_cv_cxx_has_namespace_std='no']
33-
)
34-
])
35-
36-
AS_IF([test "x${sigc_cv_cxx_has_namespace_std}" = 'xyes'],
37-
[AC_DEFINE([SIGC_HAVE_NAMESPACE_STD],[1], [Defined when the libstdc++ declares the std-namespace])])
38-
])
39-
401
## SIGC_CXX_HAS_SUN_REVERSE_ITERATOR()
412
##
423
## Check for Sun libCstd style std::reverse_iterator, which demands more than just one template parameter.
434
## and #define SIGC_HAVE_SUN_REVERSE_ITERATOR if found.
445
##
456
AC_DEFUN([SIGC_CXX_HAS_SUN_REVERSE_ITERATOR],
467
[
47-
AC_REQUIRE([SIGC_CXX_HAS_NAMESPACE_STD])
48-
498
AC_CACHE_CHECK(
509
[for non-standard Sun libCstd reverse_iterator],
5110
[sigc_cv_cxx_has_sun_reverse_iterator],
5211
[
5312
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
5413
[[
5514
#include <iterator>
56-
#ifdef SIGC_HAVE_NAMESPACE_STD
57-
using namespace std;
58-
#endif
5915
]],[[
6016
typedef reverse_iterator<char*,random_access_iterator_tag,char,char&,char*,int> ReverseIter;
6117
]])],

configure.ac

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ AC_LANG([C++])
5353
SIGC_CXX_GCC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD
5454
SIGC_CXX_MSVC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD
5555
SIGC_CXX_PRAGMA_PUSH_POP_MACRO
56-
SIGC_CXX_HAS_NAMESPACE_STD
5756
SIGC_CXX_HAS_SUN_REVERSE_ITERATOR
5857

5958
AS_IF([test "x$config_error" = xyes],

docs/reference/Doxyfile.in

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,8 @@ PREDEFINED = __cplusplus \
280280
"SIGC_API=" \
281281
SIGC_CONFIGURE \
282282
SIGC_GCC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD \
283-
SIGC_HAVE_NAMESPACE_STD \
284283
SIGC_MSVC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD \
285-
SIGC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD \
286-
"SIGC_USING_STD(Symbol)="
284+
SIGC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD"
287285
EXPAND_AS_DEFINED = SIGC_WORKAROUND_OPERATOR_PARENTHESES \
288286
SIGCXX_MAJOR_VERSION \
289287
SIGCXX_MINOR_VERSION \

sigc++config.h.in

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646

4747
# define SIGC_MSVC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD 1
4848
# define SIGC_NEW_DELETE_IN_LIBRARY_ONLY 1 /* To keep ABI compatibility */
49-
# define SIGC_HAVE_NAMESPACE_STD 1
5049
# define SIGC_PRAGMA_PUSH_POP_MACRO 1
5150

5251
#if (_MSC_VER < 1900) && !defined (noexcept)
@@ -60,9 +59,6 @@
6059
calling operator() template methods. */
6160
# undef SIGC_GCC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD
6261

63-
/* Defined when the libstdc++ declares the std-namespace */
64-
# undef SIGC_HAVE_NAMESPACE_STD
65-
6662
/* Define if the non-standard Sun reverse_iterator must be used. */
6763
# undef SIGC_HAVE_SUN_REVERSE_ITERATOR
6864

@@ -75,12 +71,6 @@
7571

7672
#endif /* !SIGC_MSC */
7773

78-
#ifdef SIGC_HAVE_NAMESPACE_STD
79-
# define SIGC_USING_STD(Symbol) /* empty */
80-
#else
81-
# define SIGC_USING_STD(Symbol) namespace std { using ::Symbol; }
82-
#endif
83-
8474
#ifdef SIGC_DLL
8575
# if defined(SIGC_BUILD) && defined(_WINDLL)
8676
# define SIGC_API __declspec(dllexport)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy