summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChun-wei Fan <fanc999@yahoo.com.tw>2018-08-13 17:03:10 +0800
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2018-09-10 15:16:53 +0200
commit0cc1962d7081c61042c68fa00e45edc2a32dbbc6 (patch)
treeeaff732eb4bbdf4421ad181874a47cfcdf72cc30 /tests
parent7950fd8fff8588071b3dd3c26d24747e2c22647a (diff)
downloadsigc++-0cc1962d7081c61042c68fa00e45edc2a32dbbc6.tar.gz
tests: Include <string> as needed
Some compilers do insist that <string> be included so that things like to_string() and stoi() becomes part of the std namespace.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_tuple_for_each.cc1
-rw-r--r--tests/test_tuple_transform_each.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_tuple_for_each.cc b/tests/test_tuple_for_each.cc
index ed31617..c4d11a4 100644
--- a/tests/test_tuple_for_each.cc
+++ b/tests/test_tuple_for_each.cc
@@ -19,6 +19,7 @@
#include <sigc++/tuple-utils/tuple_for_each.h>
#include <iostream>
#include <functional>
+#include <string>
template <typename T_element_from>
class for_each_simple
diff --git a/tests/test_tuple_transform_each.cc b/tests/test_tuple_transform_each.cc
index 373ee77..1714bb4 100644
--- a/tests/test_tuple_transform_each.cc
+++ b/tests/test_tuple_transform_each.cc
@@ -19,6 +19,7 @@
#include <sigc++/tuple-utils/tuple_transform_each.h>
#include <utility>
#include <functional>
+#include <string>
template <typename T_element_from>
class transform_to_string