Closed bcamel closed 8 years ago
Thanks for the heads-up. I've committed a fix. Let me know if it works now.
Works fine, thank you!
By the way, why is the static
modificator unfavorable to solve this issue?
static
was ok, too, but given the choice I preferred to hide f_A
further and reduce the possibility of name clashes.
If we didn't have to support older compilers we'd use lambdas for this kind of things. One day, hopefully...
Recent change (43e90db) put
Disposable<Array> f_A(const SparseMatrix &g, const Array &x)
intoQuantLib::detail
namespace. This causes LNK2005 (violation of one definition rule) on Microsoft Visual Studio (tested on VS2015).My usage: In my project, I put some universal helper functions into a library
util.lib
and link this library to an executable together with QuantLib.The error vanished when making the function
static
: