From 34b7599df68edcba2cab5f1ae13de954f16ea57d Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Sun, 8 Sep 2013 14:54:28 -0700 Subject: [PATCH] Rename to IsCond<> --- Builds/VisualStudio2012/beast.vcxproj | 2 +- Builds/VisualStudio2012/beast.vcxproj.filters | 6 +++--- beast/intrusive/ForwardList.h | 8 ++++---- beast/mpl.h | 2 +- beast/mpl/{IfConst.h => IfCond.h} | 8 ++++---- modules/beast_core/containers/DynamicList.h | 10 +++++----- 6 files changed, 18 insertions(+), 18 deletions(-) rename beast/mpl/{IfConst.h => IfCond.h} (91%) diff --git a/Builds/VisualStudio2012/beast.vcxproj b/Builds/VisualStudio2012/beast.vcxproj index 3fab76e0d8..0b37aeb611 100644 --- a/Builds/VisualStudio2012/beast.vcxproj +++ b/Builds/VisualStudio2012/beast.vcxproj @@ -73,7 +73,7 @@ - + diff --git a/Builds/VisualStudio2012/beast.vcxproj.filters b/Builds/VisualStudio2012/beast.vcxproj.filters index a4a31b7aaa..1765c75dff 100644 --- a/Builds/VisualStudio2012/beast.vcxproj.filters +++ b/Builds/VisualStudio2012/beast.vcxproj.filters @@ -878,9 +878,6 @@ beast\mpl - - beast\mpl - beast @@ -1025,6 +1022,9 @@ beast_asio\http + + beast\mpl + diff --git a/beast/intrusive/ForwardList.h b/beast/intrusive/ForwardList.h index 1cf6b069df..2a88225b97 100644 --- a/beast/intrusive/ForwardList.h +++ b/beast/intrusive/ForwardList.h @@ -150,10 +150,10 @@ class ForwardListIterator std::forward_iterator_tag, typename Container::value_type, typename Container::difference_type, - typename mpl::IfConst ::type, - typename mpl::IfConst ::type> { @@ -167,10 +167,10 @@ protected: public: typedef typename Container::value_type value_type; - typedef typename mpl::IfConst ::type pointer; - typedef typename mpl::IfConst ::type reference; diff --git a/beast/mpl.h b/beast/mpl.h index 454f311741..051931e688 100644 --- a/beast/mpl.h +++ b/beast/mpl.h @@ -21,7 +21,7 @@ #define BEAST_MPL_H_INCLUDED #include "mpl/AddConst.h" -#include "mpl/IfConst.h" +#include "mpl/IfCond.h" #include "mpl/PointerToOther.h" #include "mpl/RemoveConst.h" #include "mpl/RemoveConstVolatile.h" diff --git a/beast/mpl/IfConst.h b/beast/mpl/IfCond.h similarity index 91% rename from beast/mpl/IfConst.h rename to beast/mpl/IfCond.h index 19f73b021a..499dfced76 100644 --- a/beast/mpl/IfConst.h +++ b/beast/mpl/IfCond.h @@ -17,8 +17,8 @@ */ //============================================================================== -#ifndef BEAST_MPL_IFCONST_H_INCLUDED -#define BEAST_MPL_IFCONST_H_INCLUDED +#ifndef BEAST_MPL_IFCOND_H_INCLUDED +#define BEAST_MPL_IFCOND_H_INCLUDED namespace beast { namespace mpl { @@ -28,13 +28,13 @@ namespace mpl { /// Select between T1 or T2 depending on Condition. /// @{ template -struct IfConst +struct IfCond { typedef T1 type; }; template -struct IfConst +struct IfCond { typedef T2 type; }; diff --git a/modules/beast_core/containers/DynamicList.h b/modules/beast_core/containers/DynamicList.h index 38719e7c5e..e048774c7b 100644 --- a/modules/beast_core/containers/DynamicList.h +++ b/modules/beast_core/containers/DynamicList.h @@ -29,23 +29,23 @@ class DynamicListIterator std::bidirectional_iterator_tag, typename Container::value_type, typename Container::difference_type, - typename mpl::IfConst ::type, - typename mpl::IfConst ::type> { private: - typedef typename mpl::IfConst ::const_iterator, typename List ::iterator>::type iterator_type; - typedef typename mpl::IfConst ::type pointer; - typedef typename mpl::IfConst ::type reference;