Re: [C++-11] Compilation errors on examples

Posted by Joao Paulo Magalhaes-2 on
URL: http://quantlib.414.s1.nabble.com/C-11-Compilation-errors-on-examples-tp965p967.html

Hi Klaus,

I think your norm function should receive its parameter x by reference. I.e. in autocovariance.hpp:

        namespace {
            // patch for g++ verion 4.7 with -std=c++11 enabled
            inline Real norm(const std::complex<Real> &x) {
                return std::norm<Real>(x);
            }
        }

instead of:

        namespace {
            // patch for g++ verion 4.7 with -std=c++11 enabled
            inline Real norm(const std::complex<Real> x) {
                return std::norm<Real>(x);
            }
        }

Regards,
João


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users