Return-Path: X-Original-To: apmail-mesos-commits-archive@www.apache.org Delivered-To: apmail-mesos-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 443B7101A5 for ; Fri, 28 Aug 2015 02:03:04 +0000 (UTC) Received: (qmail 83088 invoked by uid 500); 28 Aug 2015 02:03:04 -0000 Delivered-To: apmail-mesos-commits-archive@mesos.apache.org Received: (qmail 82997 invoked by uid 500); 28 Aug 2015 02:03:04 -0000 Mailing-List: contact commits-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list commits@mesos.apache.org Received: (qmail 82911 invoked by uid 99); 28 Aug 2015 02:03:04 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Aug 2015 02:03:04 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 032F6E7EA0; Fri, 28 Aug 2015 02:03:04 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mpark@apache.org To: commits@mesos.apache.org Date: Fri, 28 Aug 2015 02:03:05 -0000 Message-Id: <14424a44412a47a5a626defd92b7644a@git.apache.org> In-Reply-To: <4abe2035316843f19c4f9c28bad7147b@git.apache.org> References: <4abe2035316843f19c4f9c28bad7147b@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [3/3] mesos git commit: mesos: Replaced instances of 'std::size_t' with 'size_t'. 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 Authored: Thu Aug 27 22:02:48 2015 -0400 Committer: Michael Park 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 { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::CommandInfo_URI argument_type; @@ -401,7 +401,7 @@ struct hash template <> struct hash { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::ContainerID argument_type; @@ -417,7 +417,7 @@ struct hash template <> struct hash { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::ExecutorID argument_type; @@ -433,7 +433,7 @@ struct hash template <> struct hash { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::FrameworkID argument_type; @@ -449,7 +449,7 @@ struct hash template <> struct hash { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::OfferID argument_type; @@ -465,7 +465,7 @@ struct hash template <> struct hash { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::SlaveID argument_type; @@ -481,7 +481,7 @@ struct hash template <> struct hash { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::TaskID argument_type; @@ -497,14 +497,14 @@ struct hash template <> struct hash { - 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(taskState); + return static_cast(taskState); } }; @@ -512,14 +512,14 @@ struct hash template <> struct hash { - 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(source); + return static_cast(source); } }; @@ -527,14 +527,14 @@ struct hash template <> struct hash { - 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(reason); + return static_cast(reason); } }; @@ -542,14 +542,14 @@ struct hash template <> struct hash { - 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(imageType); + return static_cast(imageType); } }; @@ -557,13 +557,13 @@ struct hash template <> struct hash> { - typedef std::size_t result_type; + typedef size_t result_type; typedef std::pair 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()(pair.first)); boost::hash_combine(seed, std::hash()(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 { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::v1::CommandInfo::URI argument_type; @@ -352,7 +352,7 @@ struct hash template <> struct hash { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::v1::ContainerID argument_type; @@ -368,7 +368,7 @@ struct hash template <> struct hash { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::v1::ExecutorID argument_type; @@ -384,7 +384,7 @@ struct hash template <> struct hash { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::v1::FrameworkID argument_type; @@ -400,7 +400,7 @@ struct hash template <> struct hash { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::v1::OfferID argument_type; @@ -416,7 +416,7 @@ struct hash template <> struct hash { - typedef std::size_t result_type; + typedef size_t result_type; typedef mesos::v1::AgentID argument_type; @@ -432,7 +432,7 @@ struct hash template <> struct hash { - 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 { - 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(level); + return static_cast(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 { - 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 { - 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(status); + return static_cast(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 { - 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(moduleId); + return static_cast(moduleId); } };