Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 301f531

Browse files
committed
try moving implementation to operators
1 parent 9f74301 commit 301f531

2 files changed

Lines changed: 10 additions & 12 deletions

File tree

include/hx/Operators.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,16 @@ Dynamic String::keyValueIterator()
431431
return new hx::StringKeyValueIterator(*this);
432432
}
433433

434-
434+
namespace hx
435+
{
436+
template<typename FROM, typename TO> Dynamic hx::ArrayKeyValueIterator<FROM, TO>::next()
437+
{
438+
int p = mIdx++;
439+
return
440+
hx::AnonStruct2_obj< int,TO >::Create(HX_("key",9f,89,51,00),p,
441+
HX_("value",71,7f,b8,31), toTo(mArray->__get(p)) );
442+
}
443+
}
435444

436445

437446

src/Array.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -760,17 +760,6 @@ hx::Val IteratorBase::__Field(const String &inString, hx::PropertyAccess inCallP
760760
}
761761
}
762762

763-
namespace hx
764-
{
765-
template<typename FROM, typename TO> Dynamic hx::ArrayKeyValueIterator<FROM, TO>::next()
766-
{
767-
int p = mIdx++;
768-
return
769-
hx::AnonStruct2_obj< int,TO >::Create(HX_("key",9f,89,51,00),p,
770-
HX_("value",71,7f,b8,31), toTo(mArray->__get(p)) );
771-
}
772-
}
773-
774763

775764
#ifdef HX_VARRAY_DEFINED
776765
// -------- VirtualArray -------------------------------------

0 commit comments

Comments
 (0)