Skip to content

Commit 2a10f4a

Browse files
committed
move ctors for BORLAND
1 parent 28d086e commit 2a10f4a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

include/json/value.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -653,9 +653,6 @@ class JSON_API ValueIteratorBase {
653653
typedef int difference_type;
654654
typedef ValueIteratorBase SelfType;
655655

656-
ValueIteratorBase();
657-
explicit ValueIteratorBase(const Value::ObjectValues::iterator& current);
658-
659656
bool operator==(const SelfType& other) const { return isEqual(other); }
660657

661658
bool operator!=(const SelfType& other) const { return !isEqual(other); }
@@ -703,6 +700,12 @@ class JSON_API ValueIteratorBase {
703700
Value::ObjectValues::iterator current_;
704701
// Indicates that iterator is for a null value.
705702
bool isNull_;
703+
704+
public:
705+
// For some reason, BORLAND needs these at the end, rather
706+
// than earlier. No idea why.
707+
ValueIteratorBase();
708+
explicit ValueIteratorBase(const Value::ObjectValues::iterator& current);
706709
};
707710

708711
/** \brief const iterator for object and array value.

0 commit comments

Comments
 (0)