<br><br><div class="gmail_quote">On Sat, Mar 12, 2011 at 1:02 PM, Andrej Mitrovic <span dir="ltr"><<a href="mailto:andrej.mitrovich@gmail.com">andrej.mitrovich@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
The best thing I can think of is introducing a temp variable:<br>
<div class="im"><br>
void main(){<br>
double[3] v1 = [1.0, 2.0, 3.0];<br>
double[3] v2 = [2.0, 3.0, 4.0];<br>
<br>
</div> double[3] v3 = v1[] + v2[];<br>
auto t1 = Test(v3);<br>
}<br>
</blockquote></div><br><br>Thanks, but I want to do it in one line, without creating a temporary. <br>