Re: [ quantlib-Bugs-3588371 ] (with fix) error C2679: no operator .. with stlp_std::string
Posted by
marcelloptr on
Aug 17, 2013; 12:54am
URL: http://quantlib.414.s1.nabble.com/quantlib-Bugs-3588371-with-fix-error-C2679-no-operator-with-stlp-std-string-tp13596p14498.html
You're right
#include <string>
was forgotten
I looked around
http://stackoverflow.com/questions/8679473/error-c2679-binary-no-operator-found-which-takes-a-right-hand-operand-ofThe std::string operators are defined in the <string> header.
The header <string.h> is for C-style string functions.
On QuantLib 1.3 only three files need this fix:
ql\patterns\observable.hpp
ql\currency.cpp
ql\errors.cpp
and they all include ql\errors.hpp
so my proposed fix is to add
#include <string>
in ql\errors.hpp
and it works.
Cheers,
Marcello