<p>Looking through the code, the <code>maybe_wkt(s)_t</code> types need a major rewrite anyway. There is no need that they are shared_ptr. They can be simple values. They functions in geometry_builder are already written in a way that RVO should be possible. I would suggest to do all this in a separate PR and do the renaming at that point.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/openstreetmap/osm2pgsql/pull/511#issuecomment-160392020">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AD2-7gOVqoYYuT-iwRvO0CjU2o0Lt-gZks5pKrS_gaJpZM4Gqsq1.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/openstreetmap/osm2pgsql/pull/511#issuecomment-160392020"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>