[Trilinos-Users] [EXTERNAL] Sacado compilation error

Marco Morandini marco.morandini at polimi.it
Tue Oct 7 03:08:21 MDT 2014


On 10/06/2014 06:44 PM, Phipps, Eric T wrote:
> Hi Simone,
>
> This is a problem that I’ve known about ever since Apple replaced their
> system compiler with clang, and stems from Sacado’s injections of its
> overloads into the std namespace (so you can do things like std::sin(x)
> where x is a Sacado type and have it do the right thing).

Isn't this dangerous in view of

C++ 2003, Section 17.4.3.1 "Reserved names"

https://www.securecoding.cert.org/confluence/display/cplusplus/MSC34-CPP.+Do+not+modify+the+standard+namespace

?

Marco



More information about the Trilinos-Users mailing list