Skip to content

Commit 260d2fd

Browse files
author
Kjell Ahlstedt
committed
Don't use SIGC_USING_STD()
The SIGC_USING_STD() macro is defined as an empty string, if some standard C++ symbols are defined in namespace std. They always are. Since many years, SIGC_USING_STD() is an unnecessary macro.
1 parent 75466ce commit 260d2fd

File tree

7 files changed

+0
-18
lines changed

7 files changed

+0
-18
lines changed

examples/hello_world.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99

1010
#include <sigc++/sigc++.h>
1111

12-
SIGC_USING_STD(cout)
13-
SIGC_USING_STD(endl)
14-
SIGC_USING_STD(string)
15-
1612
void on_print(const std::string& str)
1713
{
1814
std::cout << str;

examples/member_method.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99

1010
#include <sigc++/sigc++.h>
1111

12-
SIGC_USING_STD(cout)
13-
SIGC_USING_STD(endl)
14-
SIGC_USING_STD(string)
15-
1612
class Something : public sigc::trackable
1713
{
1814
public:

sigc++/connection.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
*/
1919

2020
#include <sigc++/connection.h>
21-
using namespace std;
2221

2322
namespace sigc {
2423

sigc++/trackable.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@
1818
*/
1919

2020
#include <sigc++/trackable.h>
21-
#include <iostream>
22-
23-
SIGC_USING_STD(ostream)
24-
25-
using namespace std;
2621

2722
namespace sigc
2823
{

tests/test_disconnect.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
//The Tru64 compiler seems to need this to avoid an unresolved symbol
1616
//See bug #161503
1717
#include <new>
18-
SIGC_USING_STD(new)
1918

2019
namespace
2120
{

tests/test_slot.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// -*- c++ -*-
21
/* Copyright 2002, The libsigc++ Development Team
32
* Assigned to public domain. Use as you wish without restriction.
43
*/
@@ -12,7 +11,6 @@
1211
//The Tru64 compiler seems to need this to avoid an unresolved symbol
1312
//See bug #161503
1413
#include <new>
15-
SIGC_USING_STD(new)
1614

1715
namespace
1816
{

tests/test_slot_move.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
//The Tru64 compiler seems to need this to avoid an unresolved symbol
1212
//See bug #161503
1313
#include <new>
14-
SIGC_USING_STD(new)
1514

1615
namespace
1716
{

0 commit comments

Comments
 (0)