<div dir="ltr">Hi,<div><br></div><div>I am trying to compile GiNaC under OS X with clang++ and the usage of libc++ (this is required, as my project, where I want to include GiNaC requires the c++11 standard).</div><div>Therefore I added the following configuration options:</div>
<div><br></div><div>./configure CXX=/usr/bin/clang++ CXXFLAGS="-std=c++11 -stdlib=libc++" LDFLAGS="-stdlib=libc++"<br></div><div><br></div><div>Upon invoking make I get an error regarding an ambiguous conversion in multiple lines:</div>
<div><br></div><div><div>inifcns_nstdsums.cpp:2604:18: error: ambiguous conversion for functional-style cast from 'int' to 'lst' (aka 'container<std::list>')</div><div> return e * (-H(lst(0),1/arg).hold());</div>
<div> ^~~~~</div><div>./container.h:145:2: note: candidate constructor</div><div> container(STLT const & s, bool discardable = false)</div><div> ^</div><div>./container.h:167:11: note: candidate constructor</div>
<div> explicit container(const ex & p1)</div></div><div><br></div><div>All errors are in the above file inifcns_nstdsums.cpp and occur with the same cast:</div><div><br></div><div>H(lst(0),1/arg).hold()<br></div>
<div><br></div><div>From the error message I can conclude that there are two constructors applyable - which one is the correct one? E.g. casting 0 to ex (changing the line to: H(lst( ex(0) ),1/arg).hold() solves the error - is this the correct cast or is the other cast the correct one?</div>
<div><br></div><div>Best Stefan</div></div>