[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r10543: Fix build on OpenBSD, add mi
From: |
Benjamin Wolsey |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r10543: Fix build on OpenBSD, add missing include in Global.cpp. |
Date: |
Wed, 14 Jan 2009 15:21:49 +0100 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 10543
committer: Benjamin Wolsey <address@hidden>
branch nick: trunk
timestamp: Wed 2009-01-14 15:21:49 +0100
message:
Fix build on OpenBSD, add missing include in Global.cpp.
modified:
libcore/PropertyList.h
libcore/asobj/Global.cpp
=== modified file 'libcore/PropertyList.h'
--- a/libcore/PropertyList.h 2008-12-16 12:20:22 +0000
+++ b/libcore/PropertyList.h 2009-01-14 14:21:49 +0000
@@ -116,8 +116,13 @@
void visitValues(V& visitor, const as_object& this_ptr) const
{
typedef container::nth_index<1>::type ContainerByOrder;
- for (ContainerByOrder::const_reverse_iterator
it=_props.get<1>().rbegin(),
- ie=_props.get<1>().rend(); it != ie; ++it)
+
+ // The template keyword is not required by the Standard here, but the
+ // OpenBSD compiler needs it. Use of the template keyword where it is
+ // not necessary is not an error.
+ for (ContainerByOrder::const_reverse_iterator
+ it = _props.template get<1>().rbegin(),
+ ie = _props.template get<1>().rend(); it != ie; ++it)
{
as_value val = it->getValue(this_ptr);
visitor.accept(it->mName, val);
@@ -142,8 +147,13 @@
void visitNonHiddenValues(V& visitor, const as_object& this_ptr) const
{
typedef container::nth_index<1>::type ContainerByOrder;
- for (ContainerByOrder::const_reverse_iterator
it=_props.get<1>().rbegin(),
- ie=_props.get<1>().rend(); it != ie; ++it)
+
+ // The template keyword is not required by the Standard here, but the
+ // OpenBSD compiler needs it. Use of the template keyword where it is
+ // not necessary is not an error.
+ for (ContainerByOrder::const_reverse_iterator it =
+ _props.template get<1>().rbegin(),
+ ie = _props.template get<1>().rend(); it != ie; ++it)
{
if (it->getFlags().get_dont_enum()) continue;
as_value val = it->getValue(this_ptr);
=== modified file 'libcore/asobj/Global.cpp'
--- a/libcore/asobj/Global.cpp 2009-01-13 11:05:41 +0000
+++ b/libcore/asobj/Global.cpp 2009-01-14 14:21:49 +0000
@@ -73,6 +73,7 @@
#include <limits> // for numeric_limits<double>::infinity
#include <sstream>
+#include <boost/lexical_cast.hpp>
// Common code to warn and return if a required single arg is not present
// and to warn if there are extra args.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r10543: Fix build on OpenBSD, add missing include in Global.cpp.,
Benjamin Wolsey <=