summaryrefslogtreecommitdiff
path: root/cpp/src/IceStorm
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceStorm')
-rw-r--r--cpp/src/IceStorm/Parser.cpp7
-rw-r--r--cpp/src/IceStorm/TopicI.cpp22
-rw-r--r--cpp/src/IceStorm/TransientTopicI.cpp22
3 files changed, 1 insertions, 50 deletions
diff --git a/cpp/src/IceStorm/Parser.cpp b/cpp/src/IceStorm/Parser.cpp
index 3a638831bdd..8079cbd186a 100644
--- a/cpp/src/IceStorm/Parser.cpp
+++ b/cpp/src/IceStorm/Parser.cpp
@@ -372,7 +372,7 @@ Parser::current(const list<string>& args)
void
Parser::showBanner()
{
- cout << "Ice " << ICE_STRING_VERSION << " Copyright 2003-2011 ZeroC, Inc." << endl;
+ cout << "Ice " << ICE_STRING_VERSION << " Copyright 2003-2012 ZeroC, Inc." << endl;
}
void
@@ -386,12 +386,7 @@ Parser::getInput(char* buf, int& result, int maxSize)
}
else
{
-#if defined(_MSC_VER) && _MSC_VER < 1500 && !defined(_STLP_MSVC)
- // COMPILERBUG: Visual C++ defines min and max as macros
- result = _MIN(maxSize, static_cast<int>(_commands.length()));
-#else
result = min(maxSize, static_cast<int>(_commands.length()));
-#endif
strncpy(buf, _commands.c_str(), result);
_commands.erase(0, result);
if(_commands.empty())
diff --git a/cpp/src/IceStorm/TopicI.cpp b/cpp/src/IceStorm/TopicI.cpp
index dc08a60a364..35e0fe455dc 100644
--- a/cpp/src/IceStorm/TopicI.cpp
+++ b/cpp/src/IceStorm/TopicI.cpp
@@ -527,28 +527,6 @@ TopicImpl::getNonReplicatedPublisher() const
}
}
-//
-// COMPILERFIX: For some reason with VC6 find reports an error.
-//
-#if defined(_MSC_VER) && (_MSC_VER < 1300)
-namespace
-{
-vector<SubscriberPtr>::iterator
-find(vector<SubscriberPtr>::iterator start, vector<SubscriberPtr>::iterator end, const Ice::Identity& ident)
-{
- while(start != end)
- {
- if(*start == ident)
- {
- return start;
- }
- ++start;
- }
- return end;
-}
-}
-#endif
-
namespace
{
void
diff --git a/cpp/src/IceStorm/TransientTopicI.cpp b/cpp/src/IceStorm/TransientTopicI.cpp
index 38200312476..25ecb67e32c 100644
--- a/cpp/src/IceStorm/TransientTopicI.cpp
+++ b/cpp/src/IceStorm/TransientTopicI.cpp
@@ -165,28 +165,6 @@ TransientTopicImpl::getNonReplicatedPublisher(const Ice::Current&) const
return _publisherPrx;
}
-//
-// COMPILERFIX: For some reason with VC6 find reports an error.
-//
-#if defined(_MSC_VER) && (_MSC_VER < 1300)
-namespace
-{
-static vector<SubscriberPtr>::iterator
-find(vector<SubscriberPtr>::iterator start, vector<SubscriberPtr>::iterator end, const Ice::Identity& ident)
-{
- while(start != end)
- {
- if(*start == ident)
- {
- return start;
- }
- ++start;
- }
- return end;
-}
-}
-#endif
-
void
TransientTopicImpl::subscribe(const QoS& origQoS, const Ice::ObjectPrx& obj, const Ice::Current&)
{