Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

weird compilation error when including basisincompleteordered.hpp from all.hpp #13

Open
pcaspers opened this issue Nov 4, 2017 · 0 comments

Comments

@pcaspers
Copy link
Owner

pcaspers commented Nov 4, 2017

when having this in ql/math/matrixutilities/all.hpp,

#include <ql/math/matrixutilities/basisincompleteordered.hpp> // causes weird compile error

I get this compiler error (e.g. when doing make in the check subfolder)

g++ -Wall -Wno-unknown-pragmas -Werror -std=c++03 -I.. checkduplicatesymbols1.cpp checkduplicatesymbols2.cpp main.cpp -o main
In file included from checkduplicatesymbols1.cpp:1:
In file included from ../ql/quantlib.hpp:39:
In file included from ../ql/math/all.hpp:35:
In file included from ../ql/math/matrixutilities/all.hpp:1:
In file included from ../ql/math/matrixutilities/basisincompleteordered.hpp:25:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/valarray:3766:53: error: 
      'value_type' is a private member of
      'boost::iterators::detail::operator_brackets_proxy<boost::iterators::permutation_iterator<std::__1::__wrap_iter<double *>,
      std::__1::__wrap_iter<unsigned long *> > >'
    __val_expr<_BinaryOp<multiplies<typename _Expr::value_type>,
                                                    ^
../ql/methods/montecarlo/brownianbridge.hpp:114:42: note: while substituting deduced template arguments into function template
      'operator*' [with _Expr =
      boost::iterators::detail::operator_brackets_proxy<boost::iterators::permutation_iterator<std::__1::__wrap_iter<double *>,
      std::__1::__wrap_iter<unsigned long *> > >]
            output[size_-1] = stdDev_[0] * begin[0];
                                         ^
../ql/models/marketmodels/browniangenerators/sobolbrowniangenerator.hpp:255:25: note: in instantiation of function template
      specialization 'QuantLib::BrownianBridge::transform<boost::iterators::permutation_iterator<std::__1::__wrap_iter<double *>,
      std::__1::__wrap_iter<unsigned long *> >, std::__1::__wrap_iter<double *> >' requested here
                bridge_.transform(boost::make_permutation_iterator(
                        ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant