boost::bind error 'F': must b e a class or namespace when followed by '::'
Posted by
Jerry Jin on
Jul 06, 2016; 5:35am
URL: http://quantlib.414.s1.nabble.com/boost-bind-error-F-must-b-e-a-class-or-namespace-when-followed-by-tp17583.html
Hello QuantLib community
I'm compiling my own project using 1.7.1 QuantLib and 1.7 QuantLibAddin, 1.5.8 boost, on Windows 7 32-bit, Visual Studio 2012
I'm getting below error for boost::bind part:
bind.hpp(69): error C2825: 'F': must be a class or namespace when followed by '::'
bind.hpp(69): error C2039: 'result_type' : is not a member of '`global namespace''
bind.hpp(69): error C2146: syntax error : missing ';' before identifier 'type'
bind.hpp(69): error C2208: 'boost::_bi::type' : no members defined using this type
bind.hpp(69): fatal error C1903: unable to recover from previous error(s); stopping compilation
I'm following the same code in QuantLibXLL:
QuantLib::Calendar calendarEnum =
ObjectHandler::Create<QuantLib::Calendar>()(calendar);
QuantLibAddin::qlCalendarIsBusinessDayBind bindObject =
boost::bind((QuantLibAddin::qlCalendarIsBusinessDaySignature)
&QuantLib::Calendar::isBusinessDay,
calendarEnum,
_1);
Did I miss anything? Thanks!
Regards
Jerry
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users