<div dir="ltr">Thanks Jonathan<div><br></div><div style>Do you think this could make a good enhancement request?</div><div style><br></div><div style>Regards</div><div style>- Puneet</div><div style><br></div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Sat, Jun 1, 2013 at 9:34 PM, Jonathan M Davis <span dir="ltr"><<a href="mailto:jmdavisProg@gmx.com" target="_blank">jmdavisProg@gmx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Saturday, June 01, 2013 20:21:42 d coder wrote:<br>
> Greetings<br>
><br>
> Is there a way to initialize an associative array to a non-null (but still<br>
> empty) state? The only way I know is by adding an element and then removing<br>
> it. Did I miss something obvious? Basically I want to write lines 7-8 in<br>
> the following code in a cleaner fashion. Any ideas?<br>
<br>
</div>Unfortunately, at the moment, I believe that that's the best that you can do -<br>
though it's trivial enough to write a function that does that for you so that<br>
you can make it a one-liner:<br>
<br>
auto aa = initAA!(string[int])();<br>
<br>
or<br>
<br>
initAA(aa);<br>
<br>
- Jonathan M Davis<br>
</blockquote></div><br></div>