diff options
Diffstat (limited to 'test/std/utilities')
3 files changed, 6 insertions, 3 deletions
diff --git a/test/std/utilities/function.objects/unord.hash/integral.pass.cpp b/test/std/utilities/function.objects/unord.hash/integral.pass.cpp index d3db45fad7c0..c20f31ff2c99 100644 --- a/test/std/utilities/function.objects/unord.hash/integral.pass.cpp +++ b/test/std/utilities/function.objects/unord.hash/integral.pass.cpp @@ -21,6 +21,7 @@ #include <functional> #include <cassert> #include <type_traits> +#include <cstddef> #include <limits> template <class T> @@ -59,7 +60,7 @@ int main() test<unsigned long long>(); // LWG #2119 - test<ptrdiff_t>(); + test<std::ptrdiff_t>(); test<size_t>(); test<int8_t>(); diff --git a/test/std/utilities/intseq/intseq.intseq/integer_seq.pass.cpp b/test/std/utilities/intseq/intseq.intseq/integer_seq.pass.cpp index a795e90c41e4..5c789f5db274 100644 --- a/test/std/utilities/intseq/intseq.intseq/integer_seq.pass.cpp +++ b/test/std/utilities/intseq/intseq.intseq/integer_seq.pass.cpp @@ -19,6 +19,7 @@ #include <utility> #include <type_traits> +#include <cstddef> #include <cassert> int main() @@ -27,7 +28,7 @@ int main() // Make a few of sequences using int3 = std::integer_sequence<int, 3, 2, 1>; - using size1 = std::integer_sequence<size_t, 7>; + using size1 = std::integer_sequence<std::size_t, 7>; using ushort2 = std::integer_sequence<unsigned short, 4, 6>; using bool0 = std::integer_sequence<bool>; @@ -35,7 +36,7 @@ int main() static_assert ( std::is_same<int3::value_type, int>::value, "int3 type wrong" ); static_assert ( int3::size() == 3, "int3 size wrong" ); - static_assert ( std::is_same<size1::value_type, size_t>::value, "size1 type wrong" ); + static_assert ( std::is_same<size1::value_type, std::size_t>::value, "size1 type wrong" ); static_assert ( size1::size() == 1, "size1 size wrong" ); static_assert ( std::is_same<ushort2::value_type, unsigned short>::value, "ushort2 type wrong" ); diff --git a/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type.pass.cpp b/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type.pass.cpp index efcc2cedc6e1..f4a6232266bb 100644 --- a/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type.pass.cpp +++ b/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type.pass.cpp @@ -13,6 +13,7 @@ #include <string> #include <type_traits> #include <complex> +#include <memory> #include <cassert> |
