diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-02-21 02:03:29 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2017-02-21 02:03:29 -0500 |
commit | 73836e58a5f5c11cd7bf7db76e9d02013975fc9a (patch) | |
tree | ccaae953fed07fdce85a98da7c8c8a7a47a94518 /channels.cpp | |
parent | 11f0186fd0c74feddc2b55cbb8083860fc88c663 (diff) | |
download | cryptopp-git-73836e58a5f5c11cd7bf7db76e9d02013975fc9a.tar.gz |
Add Test namespace within CryptoPP namespace (Issue 379)
Diffstat (limited to 'channels.cpp')
-rw-r--r-- | channels.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/channels.cpp b/channels.cpp index 2082ad67..318efd70 100644 --- a/channels.cpp +++ b/channels.cpp @@ -1,4 +1,5 @@ // channels.cpp - originally written and placed in the public domain by Wei Dai
+// CryptoPP::Test namespace added by JW in February 2017
#include "pch.h"
@@ -8,7 +9,6 @@ #include "channels.h"
NAMESPACE_BEGIN(CryptoPP)
-USING_NAMESPACE(std)
#if 0
void MessageSwitch::AddDefaultRoute(BufferedTransformation &destination, const std::string &channel)
@@ -37,7 +37,7 @@ public: MessageRouteIterator(MessageSwitch &ms, const std::string &channel)
: m_channel(channel)
{
- pair<MapIterator, MapIterator> range = cs.m_routeMap.equal_range(channel);
+ std::pair<MapIterator, MapIterator> range = cs.m_routeMap.equal_range(channel);
if (range.first == range.second)
{
m_useDefault = true;
@@ -97,7 +97,7 @@ void MessageSwitch::MessageSeriesEnd(int propagation=-1); void ChannelRouteIterator::Reset(const std::string &channel)
{
m_channel = channel;
- pair<MapIterator, MapIterator> range = m_cs.m_routeMap.equal_range(channel);
+ std::pair<MapIterator, MapIterator> range = m_cs.m_routeMap.equal_range(channel);
if (range.first == range.second)
{
m_useDefault = true;
@@ -297,7 +297,7 @@ void ChannelSwitch::AddRoute(const std::string &inChannel, BufferedTransformatio void ChannelSwitch::RemoveRoute(const std::string &inChannel, BufferedTransformation &destination, const std::string &outChannel)
{
typedef ChannelSwitch::RouteMap::iterator MapIterator;
- pair<MapIterator, MapIterator> range = m_routeMap.equal_range(inChannel);
+ std::pair<MapIterator, MapIterator> range = m_routeMap.equal_range(inChannel);
for (MapIterator it = range.first; it != range.second; ++it)
if (it->second.first == &destination && it->second.second == outChannel)
|