<div dir="ltr"><div>I found the solution:<br></div><div>std::vector<adouble> aparams(n);</div><div>aparams[0] = mkparam(e);</div><div>aparams[1] = mkparam(nu);<br></div><div>.........</div><div><br></div><div>Thank you<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Giang</div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Sep 6, 2018 at 11:34 AM hg <<a href="mailto:hgbk2008@gmail.com">hgbk2008@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello<div><br></div><div>I would like to create an array of parameters to pass in the argument of a function. When I declared:</div><div><br></div><div>std::vector<pdouble> aparams;</div><div><br></div><div>The compiler stops because pdouble has a protected constructor. Is there any idea to get over this problem?</div><div><br></div><div>Best regards<br clear="all"><div><div dir="ltr" class="m_-842128685762302147gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Giang</div><div dir="ltr"><br></div></div></div></div></div>
</blockquote></div>