You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by mp...@apache.org on 2015/08/28 04:03:03 UTC
[1/3] mesos git commit: stout: Replaced instances of 'std::size_t'
with 'size_t'.
Repository: mesos
Updated Branches:
refs/heads/master 46ce7f68b -> a6cae9f14
stout: Replaced instances of 'std::size_t' with 'size_t'.
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/0e6bb2cc
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/0e6bb2cc
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/0e6bb2cc
Branch: refs/heads/master
Commit: 0e6bb2cca8b019070e8e8bdb12b239a288e7b406
Parents: 46ce7f6
Author: Michael Park <mp...@apache.org>
Authored: Thu Aug 27 22:02:29 2015 -0400
Committer: Michael Park <mp...@apache.org>
Committed: Thu Aug 27 22:02:29 2015 -0400
----------------------------------------------------------------------
3rdparty/libprocess/3rdparty/stout/include/stout/ip.hpp | 2 +-
3rdparty/libprocess/3rdparty/stout/include/stout/uuid.hpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/0e6bb2cc/3rdparty/libprocess/3rdparty/stout/include/stout/ip.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/ip.hpp b/3rdparty/libprocess/3rdparty/stout/include/stout/ip.hpp
index 1a8b38b..1ad119d 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/ip.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/ip.hpp
@@ -487,7 +487,7 @@ namespace std {
template <>
struct hash<net::IP>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef net::IP argument_type;
http://git-wip-us.apache.org/repos/asf/mesos/blob/0e6bb2cc/3rdparty/libprocess/3rdparty/stout/include/stout/uuid.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/uuid.hpp b/3rdparty/libprocess/3rdparty/stout/include/stout/uuid.hpp
index b9138ff..e90dabb 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/uuid.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/uuid.hpp
@@ -69,7 +69,7 @@ namespace std {
template <>
struct hash<UUID>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef UUID argument_type;
[2/3] mesos git commit: libprocess: Replaced instances of
'std::size_t' with 'size_t'.
Posted by mp...@apache.org.
libprocess: Replaced instances of 'std::size_t' with 'size_t'.
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/5408b16f
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/5408b16f
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/5408b16f
Branch: refs/heads/master
Commit: 5408b16f59e85b750c173be39d12a941e4a5e7e3
Parents: 0e6bb2c
Author: Michael Park <mp...@apache.org>
Authored: Thu Aug 27 22:02:39 2015 -0400
Committer: Michael Park <mp...@apache.org>
Committed: Thu Aug 27 22:02:39 2015 -0400
----------------------------------------------------------------------
3rdparty/libprocess/include/process/address.hpp | 2 +-
3rdparty/libprocess/include/process/pid.hpp | 2 +-
3rdparty/libprocess/src/pid.cpp | 1 -
3 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/5408b16f/3rdparty/libprocess/include/process/address.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/address.hpp b/3rdparty/libprocess/include/process/address.hpp
index e0fa179..bf230ac 100644
--- a/3rdparty/libprocess/include/process/address.hpp
+++ b/3rdparty/libprocess/include/process/address.hpp
@@ -150,7 +150,7 @@ namespace std {
template <>
struct hash<process::network::Address>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef process::network::Address argument_type;
http://git-wip-us.apache.org/repos/asf/mesos/blob/5408b16f/3rdparty/libprocess/include/process/pid.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/pid.hpp b/3rdparty/libprocess/include/process/pid.hpp
index 2986e85..e87cfca 100644
--- a/3rdparty/libprocess/include/process/pid.hpp
+++ b/3rdparty/libprocess/include/process/pid.hpp
@@ -159,7 +159,7 @@ namespace std {
template <>
struct hash<process::UPID>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef process::UPID argument_type;
http://git-wip-us.apache.org/repos/asf/mesos/blob/5408b16f/3rdparty/libprocess/src/pid.cpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/pid.cpp b/3rdparty/libprocess/src/pid.cpp
index a1731ae..9887d83 100644
--- a/3rdparty/libprocess/src/pid.cpp
+++ b/3rdparty/libprocess/src/pid.cpp
@@ -36,7 +36,6 @@
using std::istream;
using std::ostream;
-using std::size_t;
using std::string;
[3/3] mesos git commit: mesos: Replaced instances of 'std::size_t'
with 'size_t'.
Posted by mp...@apache.org.
mesos: Replaced instances of 'std::size_t' with 'size_t'.
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/a6cae9f1
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/a6cae9f1
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/a6cae9f1
Branch: refs/heads/master
Commit: a6cae9f1410d1ff65b5cf308fab20da47eebf3ab
Parents: 5408b16
Author: Michael Park <mp...@apache.org>
Authored: Thu Aug 27 22:02:48 2015 -0400
Committer: Michael Park <mp...@apache.org>
Committed: Thu Aug 27 22:02:48 2015 -0400
----------------------------------------------------------------------
include/mesos/type_utils.hpp | 34 +++++++++++++++++-----------------
include/mesos/v1/mesos.hpp | 14 +++++++-------
src/linux/cgroups.hpp | 4 ++--
src/linux/routing/filter/ip.hpp | 4 ++--
src/messages/log.hpp | 4 ++--
src/tests/module.hpp | 4 ++--
6 files changed, 32 insertions(+), 32 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/a6cae9f1/include/mesos/type_utils.hpp
----------------------------------------------------------------------
diff --git a/include/mesos/type_utils.hpp b/include/mesos/type_utils.hpp
index 8d27ef4..1c8f95b 100644
--- a/include/mesos/type_utils.hpp
+++ b/include/mesos/type_utils.hpp
@@ -376,7 +376,7 @@ namespace std {
template <>
struct hash<mesos::CommandInfo_URI>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef mesos::CommandInfo_URI argument_type;
@@ -401,7 +401,7 @@ struct hash<mesos::CommandInfo_URI>
template <>
struct hash<mesos::ContainerID>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef mesos::ContainerID argument_type;
@@ -417,7 +417,7 @@ struct hash<mesos::ContainerID>
template <>
struct hash<mesos::ExecutorID>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef mesos::ExecutorID argument_type;
@@ -433,7 +433,7 @@ struct hash<mesos::ExecutorID>
template <>
struct hash<mesos::FrameworkID>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef mesos::FrameworkID argument_type;
@@ -449,7 +449,7 @@ struct hash<mesos::FrameworkID>
template <>
struct hash<mesos::OfferID>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef mesos::OfferID argument_type;
@@ -465,7 +465,7 @@ struct hash<mesos::OfferID>
template <>
struct hash<mesos::SlaveID>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef mesos::SlaveID argument_type;
@@ -481,7 +481,7 @@ struct hash<mesos::SlaveID>
template <>
struct hash<mesos::TaskID>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef mesos::TaskID argument_type;
@@ -497,14 +497,14 @@ struct hash<mesos::TaskID>
template <>
struct hash<mesos::TaskState>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef mesos::TaskState argument_type;
result_type operator()(const argument_type& taskState) const
{
// Use the underlying type of the enum as hash value.
- return static_cast<std::size_t>(taskState);
+ return static_cast<size_t>(taskState);
}
};
@@ -512,14 +512,14 @@ struct hash<mesos::TaskState>
template <>
struct hash<mesos::TaskStatus_Source>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef mesos::TaskStatus_Source argument_type;
result_type operator()(const argument_type& source) const
{
// Use the underlying type of the enum as hash value.
- return static_cast<std::size_t>(source);
+ return static_cast<size_t>(source);
}
};
@@ -527,14 +527,14 @@ struct hash<mesos::TaskStatus_Source>
template <>
struct hash<mesos::TaskStatus_Reason>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef mesos::TaskStatus_Reason argument_type;
result_type operator()(const argument_type& reason) const
{
// Use the underlying type of the enum as hash value.
- return static_cast<std::size_t>(reason);
+ return static_cast<size_t>(reason);
}
};
@@ -542,14 +542,14 @@ struct hash<mesos::TaskStatus_Reason>
template <>
struct hash<mesos::Image_Type>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef mesos::Image_Type argument_type;
result_type operator()(const argument_type& imageType) const
{
// Use the underlying type of the enum as hash value.
- return static_cast<std::size_t>(imageType);
+ return static_cast<size_t>(imageType);
}
};
@@ -557,13 +557,13 @@ struct hash<mesos::Image_Type>
template <>
struct hash<std::pair<mesos::FrameworkID, mesos::ExecutorID>>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef std::pair<mesos::FrameworkID, mesos::ExecutorID> argument_type;
result_type operator()(const argument_type& pair) const
{
- std::size_t seed = 0;
+ size_t seed = 0;
boost::hash_combine(seed, std::hash<mesos::FrameworkID>()(pair.first));
boost::hash_combine(seed, std::hash<mesos::ExecutorID>()(pair.second));
return seed;
http://git-wip-us.apache.org/repos/asf/mesos/blob/a6cae9f1/include/mesos/v1/mesos.hpp
----------------------------------------------------------------------
diff --git a/include/mesos/v1/mesos.hpp b/include/mesos/v1/mesos.hpp
index 70f63a3..0d695f3 100644
--- a/include/mesos/v1/mesos.hpp
+++ b/include/mesos/v1/mesos.hpp
@@ -327,7 +327,7 @@ namespace std {
template <>
struct hash<mesos::v1::CommandInfo::URI>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef mesos::v1::CommandInfo::URI argument_type;
@@ -352,7 +352,7 @@ struct hash<mesos::v1::CommandInfo::URI>
template <>
struct hash<mesos::v1::ContainerID>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef mesos::v1::ContainerID argument_type;
@@ -368,7 +368,7 @@ struct hash<mesos::v1::ContainerID>
template <>
struct hash<mesos::v1::ExecutorID>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef mesos::v1::ExecutorID argument_type;
@@ -384,7 +384,7 @@ struct hash<mesos::v1::ExecutorID>
template <>
struct hash<mesos::v1::FrameworkID>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef mesos::v1::FrameworkID argument_type;
@@ -400,7 +400,7 @@ struct hash<mesos::v1::FrameworkID>
template <>
struct hash<mesos::v1::OfferID>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef mesos::v1::OfferID argument_type;
@@ -416,7 +416,7 @@ struct hash<mesos::v1::OfferID>
template <>
struct hash<mesos::v1::AgentID>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef mesos::v1::AgentID argument_type;
@@ -432,7 +432,7 @@ struct hash<mesos::v1::AgentID>
template <>
struct hash<mesos::v1::TaskID>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef mesos::v1::TaskID argument_type;
http://git-wip-us.apache.org/repos/asf/mesos/blob/a6cae9f1/src/linux/cgroups.hpp
----------------------------------------------------------------------
diff --git a/src/linux/cgroups.hpp b/src/linux/cgroups.hpp
index f0e56b3..204c530 100644
--- a/src/linux/cgroups.hpp
+++ b/src/linux/cgroups.hpp
@@ -656,14 +656,14 @@ namespace std {
template <>
struct hash<cgroups::memory::pressure::Level>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef cgroups::memory::pressure::Level argument_type;
result_type operator()(const argument_type& level) const
{
// Use the underlying type of the enum as hash value.
- return static_cast<std::size_t>(level);
+ return static_cast<size_t>(level);
}
};
http://git-wip-us.apache.org/repos/asf/mesos/blob/a6cae9f1/src/linux/routing/filter/ip.hpp
----------------------------------------------------------------------
diff --git a/src/linux/routing/filter/ip.hpp b/src/linux/routing/filter/ip.hpp
index 29e0e6d..86c585f 100644
--- a/src/linux/routing/filter/ip.hpp
+++ b/src/linux/routing/filter/ip.hpp
@@ -213,13 +213,13 @@ namespace std {
template <>
struct hash<routing::filter::ip::PortRange>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef routing::filter::ip::PortRange argument_type;
result_type operator()(const argument_type& range) const
{
- std::size_t seed = 0;
+ size_t seed = 0;
boost::hash_combine(seed, range.begin());
boost::hash_combine(seed, range.end());
return seed;
http://git-wip-us.apache.org/repos/asf/mesos/blob/a6cae9f1/src/messages/log.hpp
----------------------------------------------------------------------
diff --git a/src/messages/log.hpp b/src/messages/log.hpp
index 01f295e..bf1eae3 100644
--- a/src/messages/log.hpp
+++ b/src/messages/log.hpp
@@ -55,14 +55,14 @@ namespace std {
template <>
struct hash<mesos::internal::log::Metadata_Status>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef mesos::internal::log::Metadata_Status argument_type;
result_type operator()(const argument_type& status) const
{
// Use the underlying type of the enum as hash value.
- return static_cast<std::size_t>(status);
+ return static_cast<size_t>(status);
}
};
http://git-wip-us.apache.org/repos/asf/mesos/blob/a6cae9f1/src/tests/module.hpp
----------------------------------------------------------------------
diff --git a/src/tests/module.hpp b/src/tests/module.hpp
index 682734a..0820978 100644
--- a/src/tests/module.hpp
+++ b/src/tests/module.hpp
@@ -88,14 +88,14 @@ namespace std {
template <>
struct hash<mesos::internal::tests::ModuleID>
{
- typedef std::size_t result_type;
+ typedef size_t result_type;
typedef mesos::internal::tests::ModuleID argument_type;
result_type operator()(const argument_type& moduleId) const
{
// Use the underlying type of the enum as hash value.
- return static_cast<std::size_t>(moduleId);
+ return static_cast<size_t>(moduleId);
}
};