<p></p>
<p><b>@joto</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/openstreetmap/osm2pgsql/pull/1168#discussion_r426243090">src/dependency-manager.hpp</a>:</p>
<pre style='color:#555'>> +     *
+     * \tparam TOutputIterator Some output iterator type, for instance
+     *         created with std::back_inserter(some vector).
+     * \param it output iterator to which all ids should be written. *it
+     *        must be of type osmid_t.
+     */
+    template <typename TOutputIterator>
+    void get_pending_relation_ids(TOutputIterator &&it) {
+        osmid_t id;
+        while (id_tracker::is_valid(id = m_rels_pending_tracker.pop_mark())) {
+            *it++ = id;
+        }
+    }
+
+private:
+    middle_t* m_object_store;
</pre>
<p>I added a commit that uses a share_ptr here.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/pull/1168#discussion_r426243090">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353WMELE43MYIIKZXWDDRR62N7ANCNFSM4M7BTDNQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353RWW43ZS2VSX7NFQM3RR62N7A5CNFSM4M7BTDN2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGODCQCAXY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/pull/1168#discussion_r426243090",
"url": "https://github.com/openstreetmap/osm2pgsql/pull/1168#discussion_r426243090",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>