summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/RubyUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Slice/RubyUtil.cpp')
-rw-r--r--cpp/src/Slice/RubyUtil.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/Slice/RubyUtil.cpp b/cpp/src/Slice/RubyUtil.cpp
index d9b4815b098..3eb6e2c43f3 100644
--- a/cpp/src/Slice/RubyUtil.cpp
+++ b/cpp/src/Slice/RubyUtil.cpp
@@ -11,6 +11,10 @@
#include <Slice/Checksum.h>
#include <IceUtil/Functional.h>
+#ifdef __BCPLUSPLUS__
+#include <iterator>
+#endif
+
using namespace std;
using namespace Slice;
using namespace IceUtil;
@@ -530,7 +534,7 @@ Slice::Ruby::CodeVisitor::visitClassDefStart(const ClassDefPtr& p)
_out << nl << "end";
_classHistory.insert(scoped); // Avoid redundant declarations.
- _out << sp << nl << "T_" << name << ".defineClass(" << (p->isInterface() ? "nil" : name) << ", "
+ _out << sp << nl << "T_" << name << ".defineClass(" << (p->isInterface() ? string("nil") : name) << ", "
<< (p->isAbstract() ? "true" : "false") << ", ";
if(!base)
{